Skip to content

Commit

Permalink
handle 200 on Delete inside Announce correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Feb 8, 2025
1 parent 710860b commit 965fe98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fed/inbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 965fe98

Please sign in to comment.