This commit is contained in:
Toks
2014-09-20 14:50:52 -04:00
parent cbdc78d606
commit 87d3cc31b3

View File

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