From 87d3cc31b325dbf9bd106a53f0382a9812cdec80 Mon Sep 17 00:00:00 2001 From: Toks Date: Sat, 20 Sep 2014 14:50:52 -0400 Subject: [PATCH] fixes #2257 --- app/models/post.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/models/post.rb b/app/models/post.rb index d66b27f96..46b640787 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -536,9 +536,11 @@ class Post < ActiveRecord::Base end if image_width >= 1024 && image_width.to_f / image_height >= 4 - tags << "wide_image long_image" + tags << "wide_image" + tags << "long_image" elsif image_height >= 1024 && image_height.to_f / image_width >= 4 - tags << "tall_image long_image" + tags << "tall_image" + tags << "long_image" end end