From fde8a2d0859a3422318a86a61b968cff9e8bf9d1 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 11 Apr 2019 10:30:53 -0400 Subject: [PATCH] don't crash if xonk not found during reply --- honk.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/honk.go b/honk.go index 7d9aefc..ec80701 100644 --- a/honk.go +++ b/honk.go @@ -868,7 +868,9 @@ func savehonk(w http.ResponseWriter, r *http.Request) { } if 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) noise = obfusbreak(noise)