mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: properly render emojis in local oneboxes
This commit is contained in:
parent
c1f53e1ece
commit
7d7f6faf40
2 changed files with 5 additions and 3 deletions
|
@ -206,7 +206,7 @@ module Oneboxer
|
|||
original_url: url,
|
||||
title: PrettyText.unescape_emoji(CGI::escapeHTML(topic.title)),
|
||||
category_html: CategoryBadge.html_for(topic.category),
|
||||
quote: post.excerpt(SiteSetting.post_onebox_maxlength),
|
||||
quote: PrettyText.unescape_emoji(post.excerpt(SiteSetting.post_onebox_maxlength)),
|
||||
}
|
||||
|
||||
template = File.read("#{Rails.root}/lib/onebox/templates/discourse_topic_onebox.hbs")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue