commit: 18deea59b441a89c1e6870d29dd0a6c0f3070f55
parent 223c1bac8dcbfd6b2454b79077545d3465688d7f
Author: Mark Felder <feld@feld.me>
Date: Sun, 10 Dec 2023 13:22:55 -0500
ActivityPub.make_user_from_ap_id/1 fetches the whole actor object including updating the public key for us
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pleroma/signature.ex b/lib/pleroma/signature.ex
@@ -58,7 +58,7 @@ defmodule Pleroma.Signature do
with %{"keyId" => kid} <- HTTPSignatures.signature_for_conn(conn),
{:ok, actor_id} <- key_id_to_actor_id(kid),
{:ok, _user} <- ActivityPub.make_user_from_ap_id(actor_id),
- {:ok, public_key} <- User.get_or_fetch_public_key_for_ap_id(actor_id) do
+ {:ok, public_key} <- User.get_public_key_for_ap_id(actor_id) do
{:ok, public_key}
else
e ->