Explorar el Código

Reverted previous patch.

This check needs more granularity; Mastodon sends Create + Note posts
not from the actor, relays sends announces, etc.
grunfink hace 1 mes
padre
commit
fe83b48f5b
Se han modificado 1 ficheros con 0 adiciones y 7 borrados
  1. 0 7
      activitypub.c

+ 0 - 7
activitypub.c

@@ -2695,13 +2695,6 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
         return -1;
     }
 
-    if (strcmp(actor, key_id) != 0) {
-        srv_log(xs_fmt("mismatched actor '%s' and key '%s'", actor, key_id));
-
-        srv_archive_error("mismatched_actor_and_key", "bad keyId", req, msg);
-        return -1;
-    }
-
     /* if no user is set, no further checks can be done; propagate */
     if (snac == NULL)
         return 2;