From 8bfa30bc1bc21fcf5a833f459f6179fe87cc1c87 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Sun, 15 Feb 2015 12:57:22 -0800 Subject: [PATCH] fixes #2347 --- app/models/post.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/post.rb b/app/models/post.rb index 3dc7e6be5..770c36d6d 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -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