remove file size constraint on twitter cards since the large image will always be sent

This commit is contained in:
r888888888
2013-08-08 16:47:24 -07:00
parent a1ab9603db
commit 760977b9f5

View File

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