mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:21:12 +08:00
This reverts commit 0d9bc0aaa6dde5a49b9315124a6343a8ffb41a16.
This commit is contained in:
@ -227,7 +227,7 @@ module PrettyText
|
||||
end
|
||||
|
||||
def self.unescape_emoji(title)
|
||||
return title unless SiteSetting.enable_emoji? && title
|
||||
return title unless SiteSetting.enable_emoji?
|
||||
|
||||
set = SiteSetting.emoji_set.inspect
|
||||
custom = Emoji.custom.map { |e| [e.name, e.url] }.to_h.to_json
|
||||
@ -239,16 +239,6 @@ module PrettyText
|
||||
end
|
||||
end
|
||||
|
||||
def self.escape_emoji(title)
|
||||
return unless title
|
||||
|
||||
protect do
|
||||
v8.eval(<<~JS)
|
||||
__performEmojiEscape(#{title.inspect});
|
||||
JS
|
||||
end
|
||||
end
|
||||
|
||||
def self.cook(text, opts = {})
|
||||
options = opts.dup
|
||||
|
||||
|
Reference in New Issue
Block a user