Fix #3237: Meta tags expose posts with censored tags.

This commit is contained in:
evazion
2017-07-24 19:40:35 -05:00
parent a177473aee
commit 9893dc1734

View File

@@ -177,7 +177,10 @@
<meta name="twitter:site" content="<%= Danbooru.config.twitter_site %>">
<meta name="twitter:title" content="<%= @post.presenter.humanized_essential_tag_string %> - <%= Danbooru.config.app_name %>">
<meta name="twitter:description" content="<%= @post.presenter.humanized_tag_string %> - <%= Danbooru.config.app_name %>">
<meta name="twitter:image" content="http://<%= Danbooru.config.hostname %><%= @post.large_file_url %>">
<% if @post.visible? %>
<meta name="twitter:image" content="http://<%= Danbooru.config.hostname %><%= @post.large_file_url %>">
<% end %>
<% end %>
<%= auto_discovery_link_tag(:atom, comments_url(:atom, search: { post_id: @post.id }), title: "Comments for post ##{@post.id}") %>