1
0
Fork 0
forked from gitea/nas

Remove extra media attachments and support raw array

This commit is contained in:
KMY 2023-04-22 17:10:11 +09:00
parent 51cac0760f
commit 57c15e0d7f
6 changed files with 4 additions and 17 deletions

View file

@ -22,8 +22,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
belongs_to :application, if: :show_application?
belongs_to :account, serializer: REST::AccountSerializer
has_many :ordered_media_attachments_original_mastodon, key: :media_attachments, serializer: REST::MediaAttachmentSerializer
has_many :ordered_media_attachments_extra, key: :media_attachments_ex, serializer: REST::MediaAttachmentSerializer
has_many :ordered_media_attachments, key: :media_attachments, serializer: REST::MediaAttachmentSerializer
has_many :ordered_mentions, key: :mentions
has_many :tags
has_many :emojis, serializer: REST::CustomEmojiSerializer