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