From e23fc2837977cc28bc386fc25ebbb3844ad4ec78 Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 9 Mar 2013 13:07:44 -0500 Subject: [PATCH] disable direct image url --- app/views/posts/partials/show/_information.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/partials/show/_information.html.erb b/app/views/posts/partials/show/_information.html.erb index af643b875..77c946a86 100644 --- a/app/views/posts/partials/show/_information.html.erb +++ b/app/views/posts/partials/show/_information.html.erb @@ -6,7 +6,7 @@
  • Approver: <%= link_to(post.approver.name, user_path(post.approver_id)) %>
  • <% end %>
  • - Size: <%= link_to number_to_human_size(post.file_size), post.file_url %> + Size: <%= link_to_if Danbooru.config.can_user_see_post?(CurrentUser.user, post), number_to_human_size(post.file_size), post.file_url %> <% if post.is_image? %> (<%= post.image_width %>x<%= post.image_height %>) <% end %>