commit 25b0829470ff33b991ae84b974b42002f7595683
parent bfdaf380eae4358b88d215a7bc1310fbd12b9e5e
Author: default <nobody@localhost>
Date: Mon, 11 Dec 2023 15:04:30 +0100
Do not retry Delete messages on actor error.
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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));