all repos — honk @ ed5c8eb7e2f2aaca9e6ae4a00b3f480486149490

my fork of honk

check for bogus hashtags
Ted Unangst tedu@tedunangst.com
Tue, 17 Sep 2019 09:53:01 -0400
commit

ed5c8eb7e2f2aaca9e6ae4a00b3f480486149490

parent

75e7409804501977a424572e891d9c779d0e8968

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M activity.goactivity.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)