From cc26322ad3fed40634c3923ea004f4a8779ce5eb Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 30 Oct 2011 17:00:07 -0400 Subject: [PATCH] new flash thumbnails --- app/models/post.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/post.rb b/app/models/post.rb index 4c7713569..6598e79d1 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -234,6 +234,10 @@ class Post < ActiveRecord::Base end def medium_image_height + if is_flash? + return 150 + end + ratio = Danbooru.config.medium_image_width.to_f / image_width.to_f if ratio < 1 (image_height * ratio).to_i