ActivityPub.make_user_from_ap_id/1 fetches the whole actor object including updating the public key for us

This commit is contained in:
Mark Felder 2023-12-10 13:22:55 -05:00
parent 223c1bac8d
commit 18deea59b4
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def refetch_public_key(conn) 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 ->