commit 62166d3

grunfink  ·  2026-08-30 06:16:00 +0000 UTC
parent eea4e1f
Added a key check to Undo.
1 files changed,  +4, -0
+4, -0
 1@@ -2813,6 +2813,10 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
 2             utype = "Follow";
 3         }
 4 
 5+        if (strcmp(actor, key_id)) {
 6+            snac_log(snac, xs_fmt("Undo: mismatched actor '%s' and key '%s'", actor, key_id));
 7+        }
 8+        else
 9         if (strcmp(utype, "Follow") == 0) { /** **/
10             if (!id) {
11                 snac_log(snac, xs_fmt("no id (msg.object.object) when "