fix search crash with extra space

This commit is contained in:
Ted Unangst 2020-07-07 16:53:30 -04:00
parent 8334161c35
commit aa736d5b48
2 changed files with 5 additions and 0 deletions

View File

@ -264,6 +264,9 @@ func gethonksbysearch(userid int64, q string, wanted int64) []*Honk {
terms := strings.Split(q, " ") terms := strings.Split(q, " ")
for _, t := range terms { for _, t := range terms {
if t == "" {
continue
}
negate := " " negate := " "
if t[0] == '-' { if t[0] == '-' {
t = t[1:] t = t[1:]

View File

@ -2,6 +2,8 @@ changelog
=== next === next
+ Fix crash in search with extra space.
+ Fix pubkey issue with domain only keys. + Fix pubkey issue with domain only keys.
=== 0.9.2 Malleable Maltote === 0.9.2 Malleable Maltote