mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 16:40:29 +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