fix bug with post previews

This commit is contained in:
Albert Yi
2018-11-02 16:38:28 -07:00
parent 08da9e7104
commit 5d83864131

View File

@@ -63,10 +63,11 @@ class PostPresenter < Presenter
locals[:pool] = nil
end
locals[:width] = post.image_width
locals[:height] = post.image_height
if options[:similarity]
locals[:similarity] = options[:similarity].round
locals[:width] = post.image_width
locals[:height] = post.image_height
else
locals[:similarity] = nil
end