search: fix noteupdater: vs -noteupdater: mixup.

This commit is contained in:
evazion
2020-04-28 01:35:34 -05:00
parent b1c494aa34
commit dc144f7d7d
2 changed files with 14 additions and 2 deletions

View File

@@ -256,9 +256,9 @@ class PostQueryBuilder
when "-noter"
user_subquery_matches(NoteVersion.unscoped.where(version: 1), value, field: :updater).negate
when "noteupdater"
user_subquery_matches(NoteVersion.unscoped, value, field: :updater).negate
when "-noteupdater"
user_subquery_matches(NoteVersion.unscoped, value, field: :updater)
when "-noteupdater"
user_subquery_matches(NoteVersion.unscoped, value, field: :updater).negate
when "upvoter", "upvote"
user_subquery_matches(PostVote.positive.visible(CurrentUser.user), value, field: :user)
when "-upvoter", "-upvote"