From 25b0829470ff33b991ae84b974b42002f7595683 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 11 Dec 2023 15:04:30 +0100 Subject: [PATCH] Do not retry Delete messages on actor error. --- activitypub.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/activitypub.c b/activitypub.c index 9ec7c37..f7a76d2 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1511,6 +1511,12 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) } if (!valid_status(a_status)) { + /* do not retry 'Delete' messages */ + if (strcmp(type, "Delete") == 0) { + srv_debug(1, xs_fmt("dropping 'Delete' message due to actor error", actor, a_status)); + return -1; + } + /* other actor download errors may need a retry */ srv_debug(1, xs_fmt("error requesting actor %s %d -- retry later", actor, a_status));