mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:41:09 +08:00
register_emoji should work with subfolder installs
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user