Remove custom_emoji aliases property from part of rest api

This commit is contained in:
KMY 2023-06-01 17:22:24 +09:00
parent 7e40c6ca4d
commit 01fcf84604
6 changed files with 57 additions and 51 deletions

View file

@ -8,7 +8,7 @@ class REST::StatusEditSerializer < ActiveModel::Serializer
attributes :content, :spoiler_text, :markdown, :sensitive, :created_at
has_many :ordered_media_attachments, key: :media_attachments, serializer: REST::MediaAttachmentSerializer
has_many :emojis, serializer: REST::CustomEmojiSerializer
has_many :emojis, serializer: REST::CustomEmojiSlimSerializer
attribute :poll, if: -> { object.poll_options.present? }