Sfoglia il codice sorgente

Don't archive Accept + Create activities as errors.

They may be (or not, not remember from the doc), but I don't care.
default 3 anni fa
parent
commit
d3de540a05
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      activitypub.c

+ 5 - 0
activitypub.c

@@ -1562,6 +1562,11 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
             else
                 snac_log(snac, xs_fmt("spurious follow accept from %s", actor));
         }
+        else
+        if (strcmp(utype, "Create") == 0) {
+            /* some implementations send Create confirmations, go figure */
+            snac_debug(snac, 1, xs_dup("ignored 'Accept' + 'Create'"));
+        }
         else {
             srv_archive_error("accept", "ignored Accept", req, msg);
             snac_debug(snac, 1, xs_fmt("ignored 'Accept' for object type '%s'", utype));