This commit is contained in:
albert
2013-03-23 12:06:49 -04:00
parent 7f5bdb0121
commit 2378e91006
6 changed files with 28 additions and 7 deletions

View File

@@ -147,6 +147,8 @@ class PostQueryBuilder
relation = relation.where("posts.is_flagged = FALSE")
elsif q[:status_neg] == "deleted"
relation = relation.where("posts.is_deleted = FALSE")
elsif CurrentUser.user.hide_deleted_posts?
relation = relation.where("posts.is_deleted = FALSE")
end
if q[:source]