if the created object is url, fetch it
Ted Unangst tedu@tedunangst.com
Sat, 20 Jul 2019 23:01:04 -0400
1 files changed,
9 insertions(+),
1 deletions(-)
jump to
M
activity.go
→
activity.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")