From 986b1c2029966fc5d413cdc1ecfc3d68d13a5b94 Mon Sep 17 00:00:00 2001 From: Toks Date: Wed, 8 Jan 2014 14:48:25 -0500 Subject: [PATCH] Fix long_image not being added with wide/tall_image --- app/models/post.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/post.rb b/app/models/post.rb index 86a3a077c..8d10539a0 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -461,9 +461,9 @@ class Post < ActiveRecord::Base end if image_width >= 1024 && image_width.to_f / image_height >= 4 - tags << "wide_image" + tags << "wide_image long_image" elsif image_height >= 1024 && image_height.to_f / image_width >= 4 - tags << "tall_image" + tags << "tall_image long_image" end return tags