search: clean up status: metatag.
* Fix not being able to use the status: metatag twice in the same search. * Fix status:active excluding banned posts. * Fix status:garbage returning all posts.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module Searchable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
def negate(kind = :nor)
|
||||
def negate(kind = :nand)
|
||||
unscoped.where(all.where_clause.invert(kind).ast)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user