diff options
author | FChannel <> | 2022-05-03 22:42:24 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 493fc8e025fd613d9faf0b573d610e4a0e0c0228 (patch) | |
tree | fd7f217ca407c1aa8e584db26d0a95944c23b034 /activitypub/object.go | |
parent | 328c9150228156c04d1045469c7dbcd7b5f4fedf (diff) |
creating boards works
Diffstat (limited to 'activitypub/object.go')
-rw-r--r-- | activitypub/object.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 |