From 965fe98e8794fcbbdb7ca1418ccc08aed8273a08 Mon Sep 17 00:00:00 2001 From: Dima Krasner Date: Sat, 8 Feb 2025 21:31:41 +0200 Subject: [PATCH] handle 200 on Delete inside Announce correctly --- fed/inbox.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fed/inbox.go b/fed/inbox.go index d12dd701..a00bb6d1 100644 --- a/fed/inbox.go +++ b/fed/inbox.go @@ -382,7 +382,7 @@ func (l *Listener) handleInbox(w http.ResponseWriter, r *http.Request) { Actor: queued.Actor, Object: id, } - } else if err == nil && exists && activity.Type == ap.Delete { + } else if err == nil && exists && queued.Type == ap.Delete { slog.Warn("Ignoring forwarded Delete activity for existing object", "activity", &activity, "id", id, "sender", sender.ID) w.WriteHeader(http.StatusBadRequest) return