point twitter card image to large file if it exists

This commit is contained in:
r888888888 2013-08-01 13:27:29 -07:00
parent a25092c8b8
commit fa1b65a859

View File

@ -112,7 +112,7 @@
<!-- Twitter properties -->
<% if @post.twitter_card_supported? %>
<meta name="twitter:card" content="photo">
<meta name="twitter:image:src" content="http://<%= Danbooru.config.hostname %><%= @post.file_url %>">
<meta name="twitter:image:src" content="http://<%= Danbooru.config.hostname %><%= @post.large_file_url %>">
<meta name="twitter:image:width" content="<%= @post.image_width %>">
<meta name="twitter:image:height" content="<%= @post.image_height %>">
<% end %>