better attempt to getting forwarded create
Ted Unangst tedu@tedunangst.com
Thu, 29 Feb 2024 01:54:09 -0500
1 files changed,
9 insertions(+),
1 deletions(-)
jump to
M
web.go
→
web.go
@@ -447,7 +447,15 @@ origin := keymatch(keyname, who)
if origin == "" { ilog.Printf("keyname actor mismatch: %s <> %s", keyname, who) if what == "Create" { - if xid, ok := j.GetString("object"); ok { + dlog.Printf("checking to get it: %v", j["object"]) + var xid string + obj, ok := j.GetMap("object") + if ok { + xid, _ = obj.GetString("id") + } else { + xid, _ = j.GetString("object") + } + if xid != "" { dlog.Printf("getting forwarded create from %s: %s", keyname, xid) grabhonk(user, xid) }