mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 17:17:32 +00:00
Hide disabled custom emojis from emoji picker and emoji auto suggestions. (#5613)
Make the same behavior as /api/v1/custom_emojis.
This commit is contained in:
parent
d307ee79e9
commit
d8cd9000d9
|
@ -7,7 +7,7 @@ class InitialStateSerializer < ActiveModel::Serializer
|
||||||
has_many :custom_emojis, serializer: REST::CustomEmojiSerializer
|
has_many :custom_emojis, serializer: REST::CustomEmojiSerializer
|
||||||
|
|
||||||
def custom_emojis
|
def custom_emojis
|
||||||
CustomEmoji.local
|
CustomEmoji.local.where(disabled: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
def meta
|
def meta
|
||||||
|
|
Loading…
Reference in a new issue