mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Hidden posts would screw up the docking of the post progress
This commit is contained in:
parent
13b31e9833
commit
a2b70f64ca
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue