mapped signature plug: fix user lookup

This commit is contained in:
Ariadne Conill 2019-07-18 16:27:50 +00:00
parent 5ea0cd69f7
commit a8af0ac053

View file

@ -23,7 +23,7 @@ defmodule Pleroma.Web.Plugs.MappedSignatureToIdentityPlug do
defp user_from_key_id(conn) do
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
else
_ ->