mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 10:57:04 +08:00
FIX: Apply both embedded post filters
This commit is contained in:
parent
664f1913c8
commit
65392f37bb
|
@ -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…
Reference in New Issue
Block a user