0
0
Fork 0

If it is disabled, remove the link of the profile directory (#9665)

This commit is contained in:
Takeshi Umeda 2018-12-31 02:57:50 +09:00 committed by Eugen Rochko
parent e74c99edf5
commit 1340460c85
3 changed files with 4 additions and 2 deletions

View file

@ -17,6 +17,7 @@ class InitialStateSerializer < ActiveModel::Serializer
version: Mastodon::Version.to_s,
invites_enabled: Setting.min_invite_role == 'user',
mascot: instance_presenter.mascot&.file&.url,
profile_directory: Setting.profile_directory,
}
if object.current_account