some people forget that hashtags start with hashes...

This commit is contained in:
Ted Unangst 2019-10-10 17:57:00 -04:00
parent bcd4cba30d
commit aa91c7d96c
1 changed files with 6 additions and 3 deletions

View File

@ -718,10 +718,13 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
} }
} }
if tt == "Hashtag" { if tt == "Hashtag" {
if len(name) > 1 && name[0] == '#' { if name == "" || name == "#" {
xonk.Onts = append(xonk.Onts, name) // skip it
} else { } else {
log.Printf("bogus hashtag name: %s", name) if name[0] != '#' {
name = "#" + name
}
xonk.Onts = append(xonk.Onts, name)
} }
} }
if tt == "Place" { if tt == "Place" {