diff --git a/app/models/post.rb b/app/models/post.rb index ffe8e640c..4c7713569 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -135,7 +135,11 @@ class Post < ActiveRecord::Base def medium_file_url if has_medium? - "/data/medium/#{file_path_prefix}#{md5}.jpg" + if is_flash? + "/images/480x150-flash.png" + else + "/data/medium/#{file_path_prefix}#{md5}.jpg" + end else file_url end @@ -150,6 +154,10 @@ class Post < ActiveRecord::Base end def preview_file_url + if is_flash? + return "/images/150x150-flash.png" + end + if Danbooru.config.ssd_path "/ssd/data/preview/#{file_path_prefix}#{md5}.jpg" else diff --git a/public/images/150x150-flash.png b/public/images/150x150-flash.png new file mode 100755 index 000000000..31b2dbe7f Binary files /dev/null and b/public/images/150x150-flash.png differ diff --git a/public/images/480x150-flash.png b/public/images/480x150-flash.png new file mode 100755 index 000000000..88035e345 Binary files /dev/null and b/public/images/480x150-flash.png differ