Fix long_image not being added with wide/tall_image

This commit is contained in:
Toks
2014-01-08 14:48:25 -05:00
parent 42b362d545
commit 986b1c2029

View File

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