Merge tag 'v2.9.2' into instance_only_statuses
This commit is contained in:
@ -31,6 +31,7 @@ class InitialStateSerializer < ActiveModel::Serializer
|
||||
store[:display_media] = object.current_account.user.setting_display_media
|
||||
store[:expand_spoilers] = object.current_account.user.setting_expand_spoilers
|
||||
store[:reduce_motion] = object.current_account.user.setting_reduce_motion
|
||||
store[:advanced_layout] = object.current_account.user.setting_advanced_layout
|
||||
store[:is_staff] = object.current_account.user.staff?
|
||||
end
|
||||
|
||||
@ -60,7 +61,7 @@ class InitialStateSerializer < ActiveModel::Serializer
|
||||
end
|
||||
|
||||
def media_attachments
|
||||
{ accept_content_types: MediaAttachment::IMAGE_FILE_EXTENSIONS + MediaAttachment::VIDEO_FILE_EXTENSIONS + MediaAttachment::IMAGE_MIME_TYPES + MediaAttachment::VIDEO_MIME_TYPES }
|
||||
{ accept_content_types: MediaAttachment.supported_file_extensions + MediaAttachment.supported_mime_types }
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user