mirror of
https://github.com/discourse/discourse.git
synced 2026-08-10 04:58:31 -05:00
FIX: Post count progress was a little off. Minor fix to hidden posts
This commit is contained in:
+2
-1
@@ -264,7 +264,8 @@ class TopicView
|
||||
end
|
||||
|
||||
def unfiltered_posts
|
||||
result = @topic.posts.where(hidden: false)
|
||||
result = @topic.posts
|
||||
result = result.where(hidden: false) unless @user.try(:staff?)
|
||||
result = result.with_deleted if @user.try(:staff?)
|
||||
result
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user