all repos — honk @ b2c76dfd770be7cdbe175c6e080a9d641c93ee2e

my fork of honk

allow attributedto to be object
Ted Unangst tedu@tedunangst.com
Sat, 20 Jul 2019 22:45:43 -0400
commit

b2c76dfd770be7cdbe175c6e080a9d641c93ee2e

parent

aadf168b98b878cacd6562a2914cb28bc118ba20

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
M activity.goactivity.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)