mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
mapped signature plug: fix user lookup
This commit is contained in:
parent
5ea0cd69f7
commit
a8af0ac053
1 changed files with 1 additions and 1 deletions
|
@ -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