Strip images from cooked for topic excerpt

This commit is contained in:
Vinoth Kannan 2018-06-11 14:43:53 +05:30
parent 204db00563
commit a6303073a0
1 changed files with 1 additions and 1 deletions

View File

@ -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?