Merge pull request #4884 from nonamethanks/remove_long_image
Posts: stop autotagging long_image
This commit is contained in:
@@ -515,10 +515,8 @@ class Post < ApplicationRecord
|
|||||||
|
|
||||||
if image_width >= 1024 && image_width.to_f / image_height >= 4
|
if image_width >= 1024 && image_width.to_f / image_height >= 4
|
||||||
tags << "wide_image"
|
tags << "wide_image"
|
||||||
tags << "long_image"
|
|
||||||
elsif image_height >= 1024 && image_height.to_f / image_width >= 4
|
elsif image_height >= 1024 && image_height.to_f / image_width >= 4
|
||||||
tags << "tall_image"
|
tags << "tall_image"
|
||||||
tags << "long_image"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if file_size >= 10.megabytes
|
if file_size >= 10.megabytes
|
||||||
|
|||||||
Reference in New Issue
Block a user