mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Revert "FIX: Better emoji escaping for topic title"
This reverts commit 35426b5ad6b00c9047b9b7ba17d42d4f30bdb488.
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