From 4e03d728b8651564681253b6ab00a0c945b47e35 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 20 Jul 2019 23:01:04 -0400 Subject: [PATCH] if the created object is url, fetch it --- activity.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/activity.go b/activity.go index 4d74171..220738e 100644 --- a/activity.go +++ b/activity.go @@ -528,7 +528,15 @@ func xonkxonk(user *WhatAbout, item junk.Junk, origin string) *Honk { 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")