check for owner before attributedTo
Ted Unangst tedu@tedunangst.com
Sat, 10 Jun 2023 23:51:31 -0400
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -1737,7 +1737,10 @@ info.Name, _ = obj.GetString("preferredUsername")
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 }