From a53f9b7917062a21860102ddf28f555b947894a3 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 20 Jul 2019 22:45:43 -0400 Subject: [PATCH] allow attributedto to be object --- activity.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/activity.go b/activity.go index 1aa0662..4d74171 100644 --- a/activity.go +++ b/activity.go @@ -446,6 +446,13 @@ func extractattrto(obj junk.Junk) string { if who != "" { return who } + o, ok := obj.GetMap("attributedTo") + if ok { + id, ok := o.GetString("id") + if ok { + return id + } + } arr, _ := obj.GetArray("attributedTo") for _, a := range arr { o, ok := a.(junk.Junk)