register_emoji should work with subfolder installs

This commit is contained in:
Régis Hanol 2017-03-24 01:08:12 +01:00
parent 5d9cba5581
commit 9f65658c5c

View File

@ -15,6 +15,7 @@ class Plugin::CustomEmoji
def self.register(name, url)
@@cache_key = Digest::SHA1.hexdigest(cache_key + name)[0..10]
url = Discourse.base_uri + url if url[/^\/[^\/]/]
emojis[name] = url
end
end