all repos — honk @ c008f7b2513b77d4674570190cc81dd9d9e2d20a

my fork of honk

if the created object is url, fetch it
Ted Unangst tedu@tedunangst.com
Sat, 20 Jul 2019 23:01:04 -0400
commit

c008f7b2513b77d4674570190cc81dd9d9e2d20a

parent

b2c76dfd770be7cdbe175c6e080a9d641c93ee2e

1 files changed, 9 insertions(+), 1 deletions(-)

jump to
M activity.goactivity.go

@@ -528,7 +528,15 @@ }

origin = originate(xid) what = "bonk" case "Create": - obj, _ = item.GetMap("object") + obj, ok = item.GetMap("object") + if !ok { + xid, _ = obj.GetString("object") + log.Printf("getting created honk: %s", xid) + obj, err = GetJunk(xid) + if err != nil { + log.Printf("error getting creation: %s", err) + } + } what = "honk" case "Delete": obj, _ = item.GetMap("object")