mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: allows to have custom emoji translation without static file (#9893)
This commit is contained in:
@@ -26,7 +26,8 @@ class SiteSerializer < ApplicationSerializer
|
||||
:topic_featured_link_allowed_category_ids,
|
||||
:user_themes,
|
||||
:censored_regexp,
|
||||
:shared_drafts_category_id
|
||||
:shared_drafts_category_id,
|
||||
:custom_emoji_translation
|
||||
)
|
||||
|
||||
has_many :categories, serializer: SiteCategorySerializer, embed: :objects
|
||||
@@ -154,6 +155,10 @@ class SiteSerializer < ApplicationSerializer
|
||||
WordWatcher.word_matcher_regexp(:censor)&.source
|
||||
end
|
||||
|
||||
def custom_emoji_translation
|
||||
Plugin::CustomEmoji.translations
|
||||
end
|
||||
|
||||
def shared_drafts_category_id
|
||||
SiteSetting.shared_drafts_category.to_i
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user