diff options
| author | grunfink <grunfink@comam.es> | 2026-08-30 08:16:00 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-08-30 08:16:00 +0200 |
| commit | 62166d33affa48b625867b246ae1c282fc97035b (patch) | |
| tree | 53e13f2aa4184194e47a80dfb2b95132050b4d5f /activitypub.c | |
| parent | eea4e1fbce6915c598a0a2211a88f7389c47c0a2 (diff) | |
Added a key check to Undo.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 " |