handle announce of update like announce of create
Ted Unangst tedu@tedunangst.com
Sat, 29 Jul 2023 16:13:19 -0400
1 files changed,
6 insertions(+),
2 deletions(-)
jump to
M
activity.go
→
activity.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") }