don't crash if xonk not found during reply

This commit is contained in:
Ted Unangst 2019-04-11 10:30:53 -04:00
parent c90057fa45
commit fde8a2d085
1 changed files with 3 additions and 1 deletions

View File

@ -868,8 +868,10 @@ func savehonk(w http.ResponseWriter, r *http.Request) {
}
if rid != "" {
xonk := getxonk("", rid)
if xonk != nil {
honk.Audience = append(honk.Audience, xonk.Audience...)
}
}
honk.Audience = oneofakind(honk.Audience)
noise = obfusbreak(noise)
honk.Noise = noise