Fix blurhash and autoplay not working on public pages (#11585)
This commit is contained in:
parent
70da6d6630
commit
e5cee8062f
13 changed files with 32 additions and 63 deletions
|
@ -38,6 +38,11 @@ class InitialStateSerializer < ActiveModel::Serializer
|
|||
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
|
||||
else
|
||||
store[:auto_play_gif] = Setting.auto_play_gif
|
||||
store[:display_media] = Setting.display_media
|
||||
store[:reduce_motion] = Setting.reduce_motion
|
||||
store[:use_blurhash] = Setting.use_blurhash
|
||||
end
|
||||
|
||||
store
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue