mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: broken emojis in topic excerpt (#11667)
When a post is truncated into the excerpt, sometimes we are breaking code of emoji
This commit is contained in:
committed by
GitHub
parent
2e24254773
commit
7f78b6ec10
@@ -486,7 +486,7 @@ class Post < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def excerpt_for_topic
|
||||
Post.excerpt(cooked, SiteSetting.topic_excerpt_maxlength, strip_links: true, strip_images: true, post: self)
|
||||
Post.excerpt(cooked, SiteSetting.topic_excerpt_maxlength, strip_links: true, strip_images: true, strip_truncated_emoji_code: true, post: self)
|
||||
end
|
||||
|
||||
def is_first_post?
|
||||
|
||||
Reference in New Issue
Block a user