mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: remove links and html 'hellips' from topic/post summaries
This commit is contained in:
@@ -114,7 +114,8 @@ class TopicView
|
||||
def summary
|
||||
return nil if desired_post.blank?
|
||||
# TODO, this is actually quite slow, should be cached in the post table
|
||||
desired_post.excerpt(500)
|
||||
excerpt = desired_post.excerpt(500, strip_links: true, text_entities: true)
|
||||
(excerpt || "").gsub(/\n/, ' ').strip
|
||||
end
|
||||
|
||||
def image_url
|
||||
|
||||
Reference in New Issue
Block a user