snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit d3de540a05b0c3c148788103cb4aae79b3512b59
parent 31048215f66392ba5fb49c2fc14e70a99f3cbfcc
Author: default <nobody@localhost>
Date:   Sun, 13 Aug 2023 15:56:11 +0200

Don't archive Accept + Create activities as errors.

They may be (or not, not remember from the doc), but I don't care.

Diffstat:
Mactivitypub.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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));