some people forget that hashtags start with hashes...
Ted Unangst tedu@tedunangst.com
Thu, 10 Oct 2019 17:57:00 -0400
1 files changed,
6 insertions(+),
3 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -718,10 +718,13 @@ xonk.Donks = append(xonk.Donks, donk)
} } if tt == "Hashtag" { - if len(name) > 1 && name[0] == '#' { + if name == "" || name == "#" { + // skip it + } else { + if name[0] != '#' { + name = "#" + name + } xonk.Onts = append(xonk.Onts, name) - } else { - log.Printf("bogus hashtag name: %s", name) } } if tt == "Place" {