projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a912f72
)
MappedSignatureToIdentityPlug: Fix.
author
lain
<lain@soykaf.club>
Fri, 1 May 2020 13:58:47 +0000
(15:58 +0200)
committer
lain
<lain@soykaf.club>
Fri, 1 May 2020 13:58:47 +0000
(15:58 +0200)
lib/pleroma/plugs/mapped_signature_to_identity_plug.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/plugs/mapped_signature_to_identity_plug.ex
b/lib/pleroma/plugs/mapped_signature_to_identity_plug.ex
index 84b7c5d83b1e84e9c6b865efa33171335fbd95e4..f44d4dee533b0bb7b2cd978b8b0662167fde8286 100644
(file)
--- a/
lib/pleroma/plugs/mapped_signature_to_identity_plug.ex
+++ b/
lib/pleroma/plugs/mapped_signature_to_identity_plug.ex
@@
-13,8
+13,9
@@
defmodule Pleroma.Web.Plugs.MappedSignatureToIdentityPlug do
def init(options), do: options
defp key_id_from_conn(conn) do
- with %{"keyId" => key_id} <- HTTPSignatures.signature_for_conn(conn) do
- Signature.key_id_to_actor_id(key_id)
+ with %{"keyId" => key_id} <- HTTPSignatures.signature_for_conn(conn),
+ {:ok, ap_id} <- Signature.key_id_to_actor_id(key_id) do
+ ap_id
else
_ ->
nil