Skip to content

A platform for community discussion. Free, open, simple.

Strip images from cooked for topic excerpt

Vinoth Kannana6303073a024
diff --git a/app/models/post.rb b/app/models/post.rb
index 57f56437dcc..cbde19341e4 100644
--- a/app/models/post.rb
+++ b/app/models/post.rb
@@ -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?