0
0
Fork 0

retrieve custom emoji list via API instead of before page load (#7047)

This commit is contained in:
Isatis 2018-04-04 13:25:34 -07:00 committed by Eugen Rochko
parent f1867a7388
commit b08ab329f4
4 changed files with 49 additions and 15 deletions

View file

@ -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,