aboutsummaryrefslogtreecommitdiff
path: root/registry/registry.go
diff options
context:
space:
mode:
Diffstat (limited to 'registry/registry.go')
-rw-r--r--registry/registry.go3
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