diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-16 19:15:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-16 19:15:05 +0200 |
commit | e5cee8062f15191d9dd388a65f6caa104abfd559 (patch) | |
tree | 0a55913ac7e3f6535bbf43bac7b3342910e3784b /app/serializers | |
parent | 70da6d663078fb7d04aed387ac085afb2e9e2cd2 (diff) |
Fix blurhash and autoplay not working on public pages (#11585)
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/initial_state_serializer.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/serializers/initial_state_serializer.rb b/app/serializers/initial_state_serializer.rb index 2cebef2c0..fb53ea314 100644 --- a/app/serializers/initial_state_serializer.rb +++ b/app/serializers/initial_state_serializer.rb @@ -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 |