From aa91c7d96c05479e50d1930eac5f76d3edca30cb Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 10 Oct 2019 17:57:00 -0400 Subject: [PATCH] some people forget that hashtags start with hashes... --- activity.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/activity.go b/activity.go index 2a411ff..8f1bb43 100644 --- a/activity.go +++ b/activity.go @@ -718,10 +718,13 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk { } } if tt == "Hashtag" { - if len(name) > 1 && name[0] == '#' { - xonk.Onts = append(xonk.Onts, name) + if name == "" || name == "#" { + // skip it } else { - log.Printf("bogus hashtag name: %s", name) + if name[0] != '#' { + name = "#" + name + } + xonk.Onts = append(xonk.Onts, name) } } if tt == "Place" {