projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preloaders: Use strings as keys.
[akkoma]
/
lib
/
pleroma
/
signature.ex
diff --git
a/lib/pleroma/signature.ex
b/lib/pleroma/signature.ex
index d01728361c4df3e626f723dd13ad81fb4b962175..3aa6909d2f1652bf79f6312381a12de130fcd232 100644
(file)
--- a/
lib/pleroma/signature.ex
+++ b/
lib/pleroma/signature.ex
@@
-5,10
+5,10
@@
defmodule Pleroma.Signature do
@behaviour HTTPSignatures.Adapter
defmodule Pleroma.Signature do
@behaviour HTTPSignatures.Adapter
+ alias Pleroma.EctoType.ActivityPub.ObjectValidators
alias Pleroma.Keys
alias Pleroma.User
alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Keys
alias Pleroma.User
alias Pleroma.Web.ActivityPub.ActivityPub
- alias Pleroma.Web.ActivityPub.ObjectValidators.Types
def key_id_to_actor_id(key_id) do
uri =
def key_id_to_actor_id(key_id) do
uri =
@@
-24,7
+24,7
@@
defmodule Pleroma.Signature do
maybe_ap_id = URI.to_string(uri)
maybe_ap_id = URI.to_string(uri)
- case
Type
s.ObjectID.cast(maybe_ap_id) do
+ case
ObjectValidator
s.ObjectID.cast(maybe_ap_id) do
{:ok, ap_id} ->
{:ok, ap_id}
{:ok, ap_id} ->
{:ok, ap_id}