This commit is contained in:
albert
2013-02-23 20:59:00 -05:00
parent 71067db7ea
commit d3e91e8290
2 changed files with 2 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
<%= render "post_sets/blank" %>
<% end %>
<% @posts.each do |post| %>
<% @posts.select {|x| Danbooru.config.can_user_see_post?(CurrentUser.user, x)}.each do |post| %>
<div class="post post-preview" data-tags="<%= post.tag_string %>" data-uploader="<%= post.uploader_name %>" data-rating="<%= post.rating %>" data-flags="<%= post.status %>" data-score="<%= post.score %>" data-parent-id="<%= post.parent_id %>" data-has-children="<%= post.has_children? %>">
<div class="preview">
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>