all repos — honk @ f39d99994461c4f0b350b29b38008a98b674c8af

my fork of honk

some people forget that hashtags start with hashes...
Ted Unangst tedu@tedunangst.com
Thu, 10 Oct 2019 17:57:00 -0400
commit

f39d99994461c4f0b350b29b38008a98b674c8af

parent

6123289ef702ef4b0ff6e2b2120db52b3e6190b2

1 files changed, 6 insertions(+), 3 deletions(-)

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