From 846e9820e90046f3d4d1b9066e30dcd42f991950 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 10 Jun 2023 23:51:31 -0400 Subject: [PATCH] check for owner before attributedTo --- activity.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/activity.go b/activity.go index b955c9d..8450608 100644 --- a/activity.go +++ b/activity.go @@ -1737,7 +1737,10 @@ func somethingabout(obj junk.Junk) (*SomeThing, error) { if info.Name == "" { info.Name, _ = obj.GetString("name") } - info.Owner, _ = obj.GetString("attributedTo") + info.Owner, _ = obj.GetString("owner") + if info.Owner == "" { + info.Owner, _ = obj.GetString("attributedTo") + } if info.Owner == "" { info.Owner = info.XID }