From d3de540a05b0c3c148788103cb4aae79b3512b59 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 13 Aug 2023 15:56:11 +0200 Subject: [PATCH] Don't archive Accept + Create activities as errors. They may be (or not, not remember from the doc), but I don't care. --- activitypub.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/activitypub.c b/activitypub.c index 8b80683..e0d923d 100644 --- a/activitypub.c +++ b/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));