diff --git a/app/presenters/post_presenter.rb b/app/presenters/post_presenter.rb index 6520fff3c..020023e9d 100644 --- a/app/presenters/post_presenter.rb +++ b/app/presenters/post_presenter.rb @@ -14,7 +14,7 @@ class PostPresenter < Presenter html = %{
} html << %{} - if post.image_width > post.image_height * 1.3 && post.image_width > Danbooru.config.small_image_width && !post.is_flash? + if post.image_width.to_i > post.image_height.to_i * 1.3 && post.image_width.to_i > Danbooru.config.small_image_width && !post.is_flash? klass = "wide" else klass = "tall"