diff options
author | FloatingGhost <hannah@coffee-and-dreams.uk> | 2022-07-18 15:21:27 +0100 |
---|---|---|
committer | Hélène <pleroma-dev@helene.moe> | 2022-08-16 18:51:34 +0200 |
commit | f41d970a592568956aa97959f28cb89cadf5f2bc (patch) | |
tree | 0a7aa92922c7293e4ea2244042ab10e74cf4baa6 /test/pleroma | |
parent | 06f9324afeef813dbd299926000cb21076d5f41c (diff) | |
download | pleroma-f41d970a592568956aa97959f28cb89cadf5f2bc.tar.gz |
fix resolution of GTS user keys
Diffstat (limited to 'test/pleroma')
-rw-r--r-- | test/pleroma/signature_test.exs | 5 |
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 |