allow attributedto to be object
Ted Unangst tedu@tedunangst.com
Sat, 20 Jul 2019 22:45:43 -0400
1 files changed,
7 insertions(+),
0 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -446,6 +446,13 @@ who, _ := obj.GetString("attributedTo")
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)