all repos — honk @ 25f9964de41e2c3562f51b635cb0e3ea7b3113a4

my fork of honk

better attempt to getting forwarded create
Ted Unangst tedu@tedunangst.com
Thu, 29 Feb 2024 01:54:09 -0500
commit

25f9964de41e2c3562f51b635cb0e3ea7b3113a4

parent

b619189a51ac5e7badd957f3b69c1e54bae826b8

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

jump to
M web.goweb.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) }