mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +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)
|
def self.register(name, url)
|
||||||
@@cache_key = Digest::SHA1.hexdigest(cache_key + name)[0..10]
|
@@cache_key = Digest::SHA1.hexdigest(cache_key + name)[0..10]
|
||||||
|
url = Discourse.base_uri + url if url[/^\/[^\/]/]
|
||||||
emojis[name] = url
|
emojis[name] = url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user