From aa736d5b48ea4bfb018205bbd5efab2f221eb4f5 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 7 Jul 2020 16:53:30 -0400 Subject: [PATCH] fix search crash with extra space --- database.go | 3 +++ docs/changelog.txt | 2 ++ 2 files changed, 5 insertions(+) diff --git a/database.go b/database.go index 9e0b526..9c98de3 100644 --- a/database.go +++ b/database.go @@ -264,6 +264,9 @@ func gethonksbysearch(userid int64, q string, wanted int64) []*Honk { terms := strings.Split(q, " ") for _, t := range terms { + if t == "" { + continue + } negate := " " if t[0] == '-' { t = t[1:] diff --git a/docs/changelog.txt b/docs/changelog.txt index 2d04933..a2336d9 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -2,6 +2,8 @@ changelog === next ++ Fix crash in search with extra space. + + Fix pubkey issue with domain only keys. === 0.9.2 Malleable Maltote