mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 08:49:20 +00:00
Strip images from cooked for topic excerpt
This commit is contained in:
parent
204db00563
commit
a6303073a0
@ -407,7 +407,7 @@ class Post < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def excerpt_for_topic
|
||||
Post.excerpt(cooked, 220, strip_links: true)
|
||||
Post.excerpt(cooked, 220, strip_links: true, strip_images: true)
|
||||
end
|
||||
|
||||
def is_first_post?
|
||||
|
Loading…
x
Reference in New Issue
Block a user