summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2023-12-11 15:04:30 +0100
committerGravatar default2023-12-11 15:04:30 +0100
commit25b0829470ff33b991ae84b974b42002f7595683 (patch)
tree81e502d78efdee10677ebe55739fee3b70d60d7d /activitypub.c
parentMore logging tweaks. (diff)
downloadsnac2-25b0829470ff33b991ae84b974b42002f7595683.tar.gz
snac2-25b0829470ff33b991ae84b974b42002f7595683.tar.xz
snac2-25b0829470ff33b991ae84b974b42002f7595683.zip
Do not retry Delete messages on actor error.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 6 insertions, 0 deletions
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)
1511 } 1511 }
1512 1512
1513 if (!valid_status(a_status)) { 1513 if (!valid_status(a_status)) {
1514 /* do not retry 'Delete' messages */
1515 if (strcmp(type, "Delete") == 0) {
1516 srv_debug(1, xs_fmt("dropping 'Delete' message due to actor error", actor, a_status));
1517 return -1;
1518 }
1519
1514 /* other actor download errors may need a retry */ 1520 /* other actor download errors may need a retry */
1515 srv_debug(1, xs_fmt("error requesting actor %s %d -- retry later", actor, a_status)); 1521 srv_debug(1, xs_fmt("error requesting actor %s %d -- retry later", actor, a_status));
1516 1522