diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-02 13:07:21 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-02 13:07:21 +0000 |
commit | 8d23867d2c6d3c6f0dd9681192b9b8642ceea254 (patch) | |
tree | bb2a1609ebd188d2902fe9cf7d2590527e17c55b /registry/registry.go | |
parent | 81873a1c6786b834a50486137f7b92b60e901d28 (diff) | |
download | communique-8d23867d2c6d3c6f0dd9681192b9b8642ceea254.tar.gz |
clean up error/response/not found handling
Diffstat (limited to '')
-rw-r--r-- | registry/registry.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 |