From bef74481c84df5b5e940a8de62b8986bdb9c6566 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 17 Sep 2019 09:53:01 -0400 Subject: [PATCH] check for bogus hashtags --- activity.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/activity.go b/activity.go index b3f8fa3..deae9d3 100644 --- a/activity.go +++ b/activity.go @@ -659,7 +659,11 @@ func xonkxonk(user *WhatAbout, item junk.Junk, origin string) *Honk { } } 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)