fix resolution of GTS user keys

This commit is contained in:
FloatingGhost 2022-07-18 15:21:27 +01:00 committed by Hélène
commit f41d970a59
No known key found for this signature in database
GPG key ID: A215F2E9F1589D62
2 changed files with 20 additions and 8 deletions

View file

@ -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