gearheads
/
mastodon
Archived
2
0
Fork 0

Hide disabled custom emojis from emoji picker and emoji auto suggestions. (#5613)

Make the same behavior as /api/v1/custom_emojis.
gh/stable
kedama 2017-11-07 22:24:21 +09:00 committed by Eugen Rochko
parent d307ee79e9
commit d8cd9000d9
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class InitialStateSerializer < ActiveModel::Serializer
has_many :custom_emojis, serializer: REST::CustomEmojiSerializer
def custom_emojis
CustomEmoji.local
CustomEmoji.local.where(disabled: false)
end
def meta