From 62166d33affa48b625867b246ae1c282fc97035b Mon Sep 17 00:00:00 2001 From: grunfink Date: Sun, 30 Aug 2026 08:16:00 +0200 Subject: Added a key check to Undo. --- activitypub.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/activitypub.c b/activitypub.c index 4d1a449..5c93bec 100644 --- a/activitypub.c +++ b/activitypub.c @@ -2813,6 +2813,10 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req) utype = "Follow"; } + if (strcmp(actor, key_id)) { + snac_log(snac, xs_fmt("Undo: mismatched actor '%s' and key '%s'", actor, key_id)); + } + else if (strcmp(utype, "Follow") == 0) { /** **/ if (!id) { snac_log(snac, xs_fmt("no id (msg.object.object) when " -- cgit