From fac385ffcbf8982039f74879e6bf6809006611f2 Mon Sep 17 00:00:00 2001 From: Toks Date: Sat, 20 Sep 2014 14:52:49 -0400 Subject: [PATCH] fix #2237 for webm and flash --- app/models/post.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/models/post.rb b/app/models/post.rb index 46b640787..e7d502d63 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -519,7 +519,7 @@ class Post < ActiveRecord::Base def add_automatic_tags(tags) return tags if !Danbooru.config.enable_dimension_autotagging - tags -= %w(incredibly_absurdres absurdres highres lowres huge_filesize) + tags -= %w(incredibly_absurdres absurdres highres lowres huge_filesize flash webm) if has_dimensions? if image_width >= 10_000 || image_height >= 10_000 @@ -548,6 +548,14 @@ class Post < ActiveRecord::Base tags << "huge_filesize" end + if file_ext == "swf" + tags << "flash" + end + + if file_ext == "webm" + tags << "webm" + end + return tags end