fixes #2465: Switch Twitter cards to use summary card+image

This commit is contained in:
r888888888
2015-08-25 16:34:51 -07:00
parent 478c0e2397
commit 5f9a6aa0c1
4 changed files with 13 additions and 5 deletions

View File

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