This commit is contained in:
r888888888
2015-02-15 12:57:22 -08:00
parent 387dece55a
commit 8bfa30bc1b

View File

@@ -176,7 +176,9 @@ class Post < ActiveRecord::Base
end
def has_large?
is_ugoira? || (is_image? && image_width.present? && image_width > Danbooru.config.large_image_width)
return false if has_tag?("animated_gif|animated_png")
return true if is_ugoira?
is_image? && image_width.present? && image_width > Danbooru.config.large_image_width
end
def has_large