Add trends UI with admin and user settings (#11502)
This commit is contained in:
parent
82d2069c75
commit
9072fe5ab6
21 changed files with 189 additions and 13 deletions
|
@ -20,6 +20,7 @@ class InitialStateSerializer < ActiveModel::Serializer
|
|||
invites_enabled: Setting.min_invite_role == 'user',
|
||||
mascot: instance_presenter.mascot&.file&.url,
|
||||
profile_directory: Setting.profile_directory,
|
||||
trends: Setting.trends,
|
||||
}
|
||||
|
||||
if object.current_account
|
||||
|
@ -35,6 +36,7 @@ class InitialStateSerializer < ActiveModel::Serializer
|
|||
store[:use_blurhash] = object.current_account.user.setting_use_blurhash
|
||||
store[:use_pending_items] = object.current_account.user.setting_use_pending_items
|
||||
store[:is_staff] = object.current_account.user.staff?
|
||||
store[:trends] = Setting.trends && object.current_account.user.setting_trends
|
||||
end
|
||||
|
||||
store
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue