This commit is contained in:
Toks
2013-04-06 13:25:29 -04:00
parent a953189031
commit 7db8053d6d

View File

@@ -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")