aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFloatingGhost <hannah@coffee-and-dreams.uk>2022-07-18 15:21:27 +0100
committerHélène <pleroma-dev@helene.moe>2022-08-16 18:51:34 +0200
commitf41d970a592568956aa97959f28cb89cadf5f2bc (patch)
tree0a7aa92922c7293e4ea2244042ab10e74cf4baa6 /test
parent06f9324afeef813dbd299926000cb21076d5f41c (diff)
downloadpleroma-f41d970a592568956aa97959f28cb89cadf5f2bc.tar.gz
fix resolution of GTS user keys
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/signature_test.exs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/pleroma/signature_test.exs b/test/pleroma/signature_test.exs
index 92d05f26c..b849cbee7 100644
--- 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
+ 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