From 9893dc17343decd38c914ab04452ed26b375de11 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 24 Jul 2017 19:40:35 -0500 Subject: [PATCH] Fix #3237: Meta tags expose posts with censored tags. --- app/views/posts/show.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index e992d4833..48a633f96 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -177,7 +177,10 @@ - + + <% if @post.visible? %> + + <% end %> <% end %> <%= auto_discovery_link_tag(:atom, comments_url(:atom, search: { post_id: @post.id }), title: "Comments for post ##{@post.id}") %>