Browse Source

Do not retry Delete messages on actor error.

default 1 year ago
parent
commit
25b0829470
1 changed files with 6 additions and 0 deletions
  1. 6 0
      activitypub.c

+ 6 - 0
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));