From: Ariadne Conill Date: Thu, 18 Jul 2019 16:27:50 +0000 (+0000) Subject: mapped signature plug: fix user lookup X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a8af0ac053713102204418fe7a28d322f81eb3ea;p=akkoma mapped signature plug: fix user lookup --- diff --git a/lib/pleroma/plugs/mapped_signature_to_identity_plug.ex b/lib/pleroma/plugs/mapped_signature_to_identity_plug.ex index 2a8ed4470..1e7da4f50 100644 --- a/lib/pleroma/plugs/mapped_signature_to_identity_plug.ex +++ b/lib/pleroma/plugs/mapped_signature_to_identity_plug.ex @@ -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 _ ->