Parcourir la source

Added a key check to Undo.

grunfink il y a 2 semaines
Parent
commit
62166d33af
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      activitypub.c

+ 4 - 0
activitypub.c

@@ -2813,6 +2813,10 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
             utype = "Follow";
             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 (strcmp(utype, "Follow") == 0) { /** **/
             if (!id) {
             if (!id) {
                 snac_log(snac, xs_fmt("no id (msg.object.object) when "
                 snac_log(snac, xs_fmt("no id (msg.object.object) when "