FIX: Hidden posts would screw up the docking of the post progress

This commit is contained in:
Robin Ward 2013-11-27 14:58:49 -05:00
parent 13b31e9833
commit a2b70f64ca
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ class TopicView
end
def setup_filtered_posts
@filtered_posts = @topic.posts
@filtered_posts = @topic.posts.where(hidden: false)
@filtered_posts = @filtered_posts.with_deleted if @user.try(:staff?)
@filtered_posts = @filtered_posts.summary if @filter == 'summary'
@filtered_posts = @filtered_posts.where('posts.post_type <> ?', Post.types[:moderator_action]) if @best.present?