summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-12-11 15:04:30 +0100
committerdefault <nobody@localhost>2023-12-11 15:04:30 +0100
commit25b0829470ff33b991ae84b974b42002f7595683 (patch)
tree81e502d78efdee10677ebe55739fee3b70d60d7d /activitypub.c
parentbfdaf380eae4358b88d215a7bc1310fbd12b9e5e (diff)
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)
}
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));