Fix fetching public keys with authorized fetch enabled
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
parent
1610d39f36
commit
b38fedf342
2 changed files with 2 additions and 1 deletions
1
changelog.d/authorized_fetch.fix
Normal file
1
changelog.d/authorized_fetch.fix
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fix fetching public keys with authorized fetch enabled
|
||||
|
|
@ -54,7 +54,7 @@ defmodule Pleroma.Signature do
|
|||
|
||||
def fetch_public_key(conn) do
|
||||
with {:ok, actor_id} <- get_actor_id(conn),
|
||||
{:ok, public_key} <- User.get_public_key_for_ap_id(actor_id) do
|
||||
{:ok, public_key} <- User.get_or_fetch_public_key_for_ap_id(actor_id) do
|
||||
{:ok, public_key}
|
||||
else
|
||||
e ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue