FIX: allows to have custom emoji translation without static file (#9893)

This commit is contained in:
Joffrey JAFFEUX
2020-05-27 20:11:52 +02:00
committed by GitHub
parent 207b72ade1
commit 77801aa9be
11 changed files with 94 additions and 17 deletions

View File

@ -18,6 +18,7 @@ class Plugin::CustomEmoji
def self.clear_cache
@@cache_key = CACHE_KEY
@@emojis = {}
@@translations = {}
end
def self.register(name, url, group = Emoji::DEFAULT_GROUP)