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

@ -5,7 +5,7 @@ class REST::PollSerializer < ActiveModel::Serializer
:multiple, :votes_count, :voters_count
has_many :loaded_options, key: :options
has_many :emojis, serializer: REST::CustomEmojiSerializer
has_many :emojis, serializer: REST::CustomEmojiSlimSerializer
attribute :voted, if: :current_user?
attribute :own_votes, if: :current_user?