some people forget that hashtags start with hashes...
This commit is contained in:
parent
bcd4cba30d
commit
aa91c7d96c
|
@ -718,10 +718,13 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if tt == "Hashtag" {
|
if tt == "Hashtag" {
|
||||||
if len(name) > 1 && name[0] == '#' {
|
if name == "" || name == "#" {
|
||||||
xonk.Onts = append(xonk.Onts, name)
|
// skip it
|
||||||
} else {
|
} else {
|
||||||
log.Printf("bogus hashtag name: %s", name)
|
if name[0] != '#' {
|
||||||
|
name = "#" + name
|
||||||
|
}
|
||||||
|
xonk.Onts = append(xonk.Onts, name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if tt == "Place" {
|
if tt == "Place" {
|
||||||
|
|
Loading…
Reference in New Issue