Remove custom_emoji aliases property from part of rest api
This commit is contained in:
parent
7e40c6ca4d
commit
01fcf84604
6 changed files with 57 additions and 51 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue