From 6c7e737294f68311a715480d6f446b9d53254a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 10 Jun 2015 18:53:14 +0200 Subject: [PATCH] FIX: truncate topic image_url --- lib/cooked_post_processor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rb index c9a53e34a5f..c853a1574c9 100644 --- a/lib/cooked_post_processor.rb +++ b/lib/cooked_post_processor.rb @@ -207,7 +207,7 @@ class CookedPostProcessor def update_topic_image(images) if @post.is_first_post? img = images.first - @post.topic.update_column(:image_url, img["src"]) if img["src"].present? + @post.topic.update_column(:image_url, img["src"][0...255]) if img["src"].present? end end