fixes #2555: Twitter card metadata should render even for large images

This commit is contained in:
r888888888
2015-11-30 11:05:42 -08:00
parent 6f17e1bac8
commit e24d6e49bc

View File

@@ -192,7 +192,7 @@ class Post < ActiveRecord::Base
end
def twitter_card_supported?
image_width.to_i >= 280 && image_height.to_i >= 150 && file_size <= 1.megabyte
image_width.to_i >= 280 && image_height.to_i >= 150
end
def has_large?