Merge branch 'master' of https://github.com/r888888888/danbooru
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user