From 493fc8e025fd613d9faf0b573d610e4a0e0c0228 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Tue, 3 May 2022 22:42:24 -0700 Subject: creating boards works --- activitypub/object.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activitypub') diff --git a/activitypub/object.go b/activitypub/object.go index c461310..e7b7630 100644 --- a/activitypub/object.go +++ b/activitypub/object.go @@ -1116,6 +1116,10 @@ func GetObjectsWithoutPreviewsCallback(callback func(id string, href string, med func GetToFromJson(to []byte) ([]string, error) { var generic interface{} + if len(to) == 0 { + return nil, nil + } + err := json.Unmarshal(to, &generic) if err != nil { return nil, err -- cgit v1.2.3