check for bogus hashtags
Ted Unangst tedu@tedunangst.com
Tue, 17 Sep 2019 09:53:01 -0400
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -659,7 +659,11 @@ xonk.Donks = append(xonk.Donks, donk)
} } if tt == "Hashtag" { - xonk.Onts = append(xonk.Onts, name) + if len(name) > 1 && name[0] == '#' { + xonk.Onts = append(xonk.Onts, name) + } else { + log.Printf("bogus hashtag name: %s", name) + } } } xonk.Onts = oneofakind(xonk.Onts)