all repos — honk @ c35b71d2df2cbb98a9977b126ff30e4be61d57f6

my fork of honk

handle announce of update like announce of create
Ted Unangst tedu@tedunangst.com
Sat, 29 Jul 2023 16:13:19 -0400
commit

c35b71d2df2cbb98a9977b126ff30e4be61d57f6

parent

eccd76a3b4ce0046e5c0242b9d2a7baf59db0222

1 files changed, 6 insertions(+), 2 deletions(-)

jump to
M activity.goactivity.go

@@ -631,12 +631,16 @@ return nil

case "Announce": obj, ok = item.GetMap("object") if ok { + // at some point we should just recurse what, ok := obj.GetString("type") - if ok && what == "Create" { + if ok && (what == "Create" || what == "Update") { obj, ok = obj.GetMap("object") if !ok { - ilog.Printf("lost object inside create %s", id) + ilog.Printf("lost object inside announce %s", id) return nil + } + if what == "Update" { + isUpdate = true } what, _ = obj.GetString("type") }