From a7adc79f202d4b9c91ba9cc00d0c4ab233c8c4a1 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 29 Jul 2023 16:13:19 -0400 Subject: [PATCH] handle announce of update like announce of create --- activity.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/activity.go b/activity.go index 237602b..7ccacf1 100644 --- a/activity.go +++ b/activity.go @@ -631,13 +631,17 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk { 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") } if what == "Page" {