Additionally:
* Adds basic negated id metatag.
* Post set presenter now uses the post set's tag string, not the
parameter from the URL.
This commit is contained in:
Toks
2013-04-27 11:13:57 -04:00
parent 087c07eb8d
commit 4001689e28
4 changed files with 11 additions and 4 deletions

View File

@@ -207,6 +207,10 @@ class PostQueryBuilder
has_constraints!
end
if q[:post_id_negated]
relation = relation.where("posts.id <> ?", q[:post_id_negated])
end
if q[:parent] == "none"
relation = relation.where("posts.parent_id IS NULL")
elsif q[:parent_neg] == "none" || q[:parent] == "any"