Posts: stop autotagging long_image

This commit is contained in:
nonamethanks
2021-09-22 11:16:45 +02:00
parent a845477cba
commit ce8c8e1ab7

View File

@@ -514,10 +514,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