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
|
end
|
||||||
|
|
||||||
def excerpt_for_topic
|
def excerpt_for_topic
|
||||||
Post.excerpt(cooked, 220, strip_links: true)
|
Post.excerpt(cooked, 220, strip_links: true, strip_images: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_first_post?
|
def is_first_post?
|
||||||
|
|
Loading…
Reference in New Issue