retrieve custom emoji list via API instead of before page load (#7047)
This commit is contained in:
parent
f1867a7388
commit
b08ab329f4
4 changed files with 49 additions and 15 deletions
|
@ -4,12 +4,6 @@ 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.where(disabled: false)
|
||||
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