FIX: Hidden posts would screw up the docking of the post progress
This commit is contained in:
parent
13b31e9833
commit
a2b70f64ca
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue