mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 02:19:31 +00:00
mapped signature plug: fix user lookup
This commit is contained in:
parent
5ea0cd69f7
commit
a8af0ac053
|
@ -23,7 +23,7 @@ defmodule Pleroma.Web.Plugs.MappedSignatureToIdentityPlug do
|
||||||
|
|
||||||
defp user_from_key_id(conn) do
|
defp user_from_key_id(conn) do
|
||||||
with key_actor_id when is_binary(key_actor_id) <- key_id_from_conn(conn),
|
with key_actor_id when is_binary(key_actor_id) <- key_id_from_conn(conn),
|
||||||
%User{} = user <- User.get_or_fetch_by_ap_id(key_actor_id) do
|
{:ok, %User{} = user} <- User.get_or_fetch_by_ap_id(key_actor_id) do
|
||||||
user
|
user
|
||||||
else
|
else
|
||||||
_ ->
|
_ ->
|
||||||
|
|
Loading…
Reference in a new issue