Add setting for whether to crop images in unexpanded toots (#12126)
This commit is contained in:
parent
a6269b2f83
commit
48f75b86ae
10 changed files with 26 additions and 9 deletions
|
@ -38,11 +38,13 @@ 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
|
||||
store[:crop_images] = object.current_account.user.setting_crop_images
|
||||
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
|
||||
store[:crop_images] = Setting.crop_images
|
||||
end
|
||||
|
||||
store
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue