don't crash if xonk not found during reply
This commit is contained in:
parent
c90057fa45
commit
fde8a2d085
4
honk.go
4
honk.go
|
@ -868,7 +868,9 @@ func savehonk(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
if rid != "" {
|
if rid != "" {
|
||||||
xonk := getxonk("", rid)
|
xonk := getxonk("", rid)
|
||||||
honk.Audience = append(honk.Audience, xonk.Audience...)
|
if xonk != nil {
|
||||||
|
honk.Audience = append(honk.Audience, xonk.Audience...)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
honk.Audience = oneofakind(honk.Audience)
|
honk.Audience = oneofakind(honk.Audience)
|
||||||
noise = obfusbreak(noise)
|
noise = obfusbreak(noise)
|
||||||
|
|
Loading…
Reference in New Issue