Hide disabled custom emojis from emoji picker and emoji auto suggestions. (#5613)
Make the same behavior as /api/v1/custom_emojis.lolsob-rspec
parent
0e22b993e6
commit
82e9df5e3c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue