add source:none
This commit is contained in:
@@ -138,8 +138,12 @@ class PostQueryBuilder
|
|||||||
end
|
end
|
||||||
|
|
||||||
if q[:source]
|
if q[:source]
|
||||||
relation = relation.where("posts.source LIKE ? ESCAPE E'\\\\'", q[:source])
|
if q[:source] == "none"
|
||||||
has_constraints!
|
relation = relation.where("(posts.source = '' OR posts.source IS NULL)")
|
||||||
|
else
|
||||||
|
relation = relation.where("posts.source LIKE ? ESCAPE E'\\\\'", q[:source])
|
||||||
|
has_constraints!
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if q[:subscriptions]
|
if q[:subscriptions]
|
||||||
|
|||||||
Reference in New Issue
Block a user