From 760977b9f5597c80adc2201c545fca8aa8770dd3 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Thu, 8 Aug 2013 16:47:24 -0700 Subject: [PATCH 1/2] remove file size constraint on twitter cards since the large image will always be sent --- app/models/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/post.rb b/app/models/post.rb index 650299a07..8038b5578 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -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? From c33ab038c7e915c9b3635b04fc0fafe0229247ce Mon Sep 17 00:00:00 2001 From: r888888888 Date: Thu, 8 Aug 2013 17:18:21 -0700 Subject: [PATCH 2/2] fixes #1885 --- app/views/posts/show.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index e0638eb7a..edaeb6cbe 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -123,6 +123,8 @@ <% if @post.presenter.next_post_in_pool %> + + <% end %> <% end %>