check for bogus hashtags
This commit is contained in:
parent
2213f0e935
commit
bef74481c8
|
@ -659,7 +659,11 @@ func xonkxonk(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
|||
}
|
||||
}
|
||||
if tt == "Hashtag" {
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue