Merge pull request #2282 from evazion/feat-autotag-ugoira

Automatically add ugoira tag to ugoira posts.
This commit is contained in:
Toks
2014-10-26 15:14:10 -04:00
2 changed files with 42 additions and 2 deletions

View File

@@ -562,14 +562,18 @@ class Post < ActiveRecord::Base
tags << "huge_filesize"
end
if file_ext == "swf"
if is_flash?
tags << "flash"
end
if file_ext == "webm"
if is_video?
tags << "webm"
end
if is_ugoira?
tags << "ugoira"
end
return tags
end