diff options
author | FloatingGhost <hannah@coffee-and-dreams.uk> | 2022-07-18 15:21:27 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2022-11-27 04:54:18 +0100 |
commit | 747311f623190cac9e345e1db3568ed850495ac2 (patch) | |
tree | dd8c78ee88934da1113a83b0c0959ad31fd699f7 /test | |
parent | 11d5ad24c5e316a9ba9f7de4c661d3af3b319c5c (diff) | |
download | pleroma-747311f623190cac9e345e1db3568ed850495ac2.tar.gz pleroma-747311f623190cac9e345e1db3568ed850495ac2.zip |
fix resolution of GTS user keys
Diffstat (limited to 'test')
-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 047c537e0..e3ae36b46 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 |