This commit is contained in:
Toks
2013-08-09 13:37:36 -04:00
2 changed files with 3 additions and 1 deletions

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?

View File

@@ -123,6 +123,8 @@
<% if @post.presenter.next_post_in_pool %>
<link rel="prefetch" href="<%= post_path(@post.presenter.next_post_in_pool, :pool_id => params[:pool_id]) %>">
<link rel="prerender" href="<%= post_path(@post.presenter.next_post_in_pool, :pool_id => params[:pool_id]) %>">
<link rel="prefetch" href="<%= Post.find(@post.presenter.next_post_in_pool).file_url_for(CurrentUser.user) %>">
<link rel="prerender" href="<%= Post.find(@post.presenter.next_post_in_pool).file_url_for(CurrentUser.user) %>">
<% end %>
<% end %>