mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
register_emoji should work with subfolder installs
This commit is contained in:
parent
5d9cba5581
commit
9f65658c5c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user