Merge pull request #4884 from nonamethanks/remove_long_image

Posts: stop autotagging long_image
This commit is contained in:
evazion
2021-09-22 23:09:08 -05:00
committed by GitHub

View File

@@ -515,10 +515,8 @@ class Post < ApplicationRecord
if image_width >= 1024 && image_width.to_f / image_height >= 4
tags << "wide_image"
tags << "long_image"
elsif image_height >= 1024 && image_height.to_f / image_width >= 4
tags << "tall_image"
tags << "long_image"
end
if file_size >= 10.megabytes