fix #2237 for webm and flash

This commit is contained in:
Toks
2014-09-20 14:52:49 -04:00
parent 87d3cc31b3
commit fac385ffcb

View File

@@ -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