projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request 'doc: update repo link from docs to akkoma' (#87) from sfr/akkoma...
[akkoma]
/
test
/
pleroma
/
signature_test.exs
diff --git
a/test/pleroma/signature_test.exs
b/test/pleroma/signature_test.exs
index 047c537e0ed757d12e29213ab566f721d382d6ae..e3ae36b465c88948309fa5ec4e07241eb3ff6afa 100644
(file)
--- a/
test/pleroma/signature_test.exs
+++ b/
test/pleroma/signature_test.exs
@@
-109,6
+109,11
@@
defmodule Pleroma.SignatureTest do
{:ok, "https://example.com/users/1234"}
end
{:ok, "https://example.com/users/1234"}
end
+ test "it deduces the actor id for gotoSocial" do
+ assert Signature.key_id_to_actor_id("https://example.com/users/1234/main-key") ==
+ {:ok, "https://example.com/users/1234"}
+ end
+
test "it calls webfinger for 'acct:' accounts" do
with_mock(Pleroma.Web.WebFinger,
finger: fn _ -> %{"ap_id" => "https://gensokyo.2hu/users/raymoo"} end
test "it calls webfinger for 'acct:' accounts" do
with_mock(Pleroma.Web.WebFinger,
finger: fn _ -> %{"ap_id" => "https://gensokyo.2hu/users/raymoo"} end