#1849: filter images for safebooru

This commit is contained in:
r888888888
2013-07-18 17:26:52 -07:00
parent 5ad3571d8b
commit 22bd07072a
6 changed files with 21 additions and 14 deletions

View File

@@ -9,7 +9,9 @@
<% @posts.select {|x| Danbooru.config.can_user_see_post?(CurrentUser.user, x)}.each do |post| %>
<div class="post <%= PostPresenter.preview_class(post) %>" <%= PostPresenter.preview_attributes(post) %>>
<div class="preview">
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
<% if post.visible? %>
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
<% end %>
</div>
<%= render "comments/partials/index/list", :post => post, :comments => post.comments.visible(CurrentUser.user).recent.reverse, :show_header => true %>
<div class="clearfix"></div>