FIX: truncate topic image_url

This commit is contained in:
Régis Hanol 2015-06-10 18:53:14 +02:00
parent b779591846
commit 6c7e737294
1 changed files with 1 additions and 1 deletions

View File

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