From fa0f731427a88ad7b7c457f19f47858a963e5412 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 8 Oct 2015 19:24:15 +1100 Subject: [PATCH] FIX: do not show image as category description --- lib/post_revisor.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/post_revisor.rb b/lib/post_revisor.rb index 6a97b166558..2c78c6ffa1b 100644 --- a/lib/post_revisor.rb +++ b/lib/post_revisor.rb @@ -393,11 +393,14 @@ class PostRevisor body = @post.cooked matches = body.scan(/\(.*)\<\/p\>/) - if matches && matches[0] && matches[0][0] - new_description = matches[0][0] + + matches.each do |match| + next if match[0] =~ /\