From a6bc763507a2c6da9357329f26c6e647fc2609cf Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 28 Aug 2023 17:41:56 -0400 Subject: [PATCH] negate operator for more queries --- database.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database.go b/database.go index 6d7b5f6..e9cb3cb 100644 --- a/database.go +++ b/database.go @@ -307,11 +307,11 @@ func gethonksbysearch(userid int64, q string, wanted int64) []*Honk { continue } if t == "@me" { - queries = append(queries, "whofore = 1") + queries = append(queries, negate+"whofore = 1") continue } if t == "@self" { - queries = append(queries, "(whofore = 2 or whofore = 3)") + queries = append(queries, negate+"(whofore = 2 or whofore = 3)") continue } if strings.HasPrefix(t, "before:") {