From 8d23867d2c6d3c6f0dd9681192b9b8642ceea254 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Mon, 2 Jan 2023 08:07:21 -0500 Subject: clean up error/response/not found handling --- registry/registry.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'registry') diff --git a/registry/registry.go b/registry/registry.go index 0a5df77..21f4622 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -132,6 +132,9 @@ func (r *Registry) ActivityOrNote(activityOrNote, name, id string) (map[string]i if err != nil { return nil, err } + if result == nil { + return nil, nil + } buf := bytes.NewBuffer(result) dec := gob.NewDecoder(buf) var outboxItem models.OutboxItem -- cgit v1.2.3