Add custom emojis to the emoji picker (#5052)
This commit is contained in:
parent
293972f716
commit
66126f3021
8 changed files with 91 additions and 2 deletions
|
@ -4,6 +4,12 @@ class InitialStateSerializer < ActiveModel::Serializer
|
|||
attributes :meta, :compose, :accounts,
|
||||
:media_attachments, :settings, :push_subscription
|
||||
|
||||
has_many :custom_emojis, serializer: REST::CustomEmojiSerializer
|
||||
|
||||
def custom_emojis
|
||||
CustomEmoji.local
|
||||
end
|
||||
|
||||
def meta
|
||||
store = {
|
||||
streaming_api_base_url: Rails.configuration.x.streaming_api_base_url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue