fixes #1220
This commit is contained in:
@@ -141,7 +141,7 @@ class PostQueryBuilder
|
||||
relation = relation.where("posts.is_banned = TRUE")
|
||||
elsif q[:status] == "all" || q[:status] == "any"
|
||||
# do nothing
|
||||
elsif q[:status_neg] == "pending"
|
||||
elsif q[:status_neg] == "pending" || q[:status] == "active"
|
||||
relation = relation.where("posts.is_pending = FALSE")
|
||||
elsif q[:status_neg] == "flagged"
|
||||
relation = relation.where("posts.is_flagged = FALSE")
|
||||
|
||||
Reference in New Issue
Block a user