mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-06 20:16:00 -04:00
FIX: Apply both embedded post filters
This commit is contained in:
parent
664f1913c8
commit
65392f37bb
1 changed files with 2 additions and 2 deletions
|
@ -386,8 +386,8 @@ class TopicView
|
|||
def unfiltered_posts
|
||||
result = filter_post_types(@topic.posts)
|
||||
result = result.with_deleted if @guardian.can_see_deleted_posts?
|
||||
result = @topic.posts.where("user_id IS NOT NULL") if @exclude_deleted_users
|
||||
result = @topic.posts.where(hidden: false) if @exclude_hidden
|
||||
result = result.where("user_id IS NOT NULL") if @exclude_deleted_users
|
||||
result = result.where(hidden: false) if @exclude_hidden
|
||||
result
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue