mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
register_emoji should work with subfolder installs
This commit is contained in:
parent
5d9cba5581
commit
9f65658c5c
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue