don't index into empty string
This commit is contained in:
parent
996cd76baa
commit
d121408464
1 changed files with 1 additions and 1 deletions
2
honk.go
2
honk.go
|
@ -845,7 +845,7 @@ func savehonk(w http.ResponseWriter, r *http.Request) {
|
|||
XID: xid,
|
||||
Date: dt,
|
||||
}
|
||||
if noise[0] == '@' {
|
||||
if noise != "" && noise[0] == '@' {
|
||||
honk.Audience = append(grapevine(noise), thewholeworld)
|
||||
} else {
|
||||
honk.Audience = prepend(thewholeworld, grapevine(noise))
|
||||
|
|
Loading…
Reference in a new issue