summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2023-12-10 13:22:55 -0500
committerMark Felder <feld@feld.me>2023-12-10 13:22:55 -0500
commit18deea59b441a89c1e6870d29dd0a6c0f3070f55 (patch)
tree767185df4966fb532237dbf2cdaa3dd94f692cd9
parent223c1bac8dcbfd6b2454b79077545d3465688d7f (diff)
downloadpleroma-18deea59b441a89c1e6870d29dd0a6c0f3070f55.tar.gz
pleroma-18deea59b441a89c1e6870d29dd0a6c0f3070f55.zip
ActivityPub.make_user_from_ap_id/1 fetches the whole actor object including updating the public key for us
-rw-r--r--lib/pleroma/signature.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/signature.ex b/lib/pleroma/signature.ex
index 42cceba28..5cfdae051 100644
--- 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 ->