Преглед изворни кода

Do not retry Delete messages on actor error.

default пре 2 година
родитељ
комит
25b0829470
1 измењених фајлова са 6 додато и 0 уклоњено
  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));