Merge branch 'authorized-fetch-fix' into 'develop'

Fix fetching public keys with authorized fetch enabled

See merge request pleroma/pleroma!4383
This commit is contained in:
nicole mikołajczyk 2025-11-01 11:25:17 +01:00
commit 68b4de7558
4 changed files with 16 additions and 1 deletions

View file

@ -1881,6 +1881,11 @@ defmodule Pleroma.UserTest do
end
end
test "get_or_fetch_public_key_for_ap_id fetches a user that's not in the db" do
assert {:ok, _key} =
User.get_or_fetch_public_key_for_ap_id("http://mastodon.example.org/users/admin")
end
test "get_public_key_for_ap_id returns correctly for user that's not in the db" do
assert :error = User.get_public_key_for_ap_id("http://mastodon.example.org/users/admin")
end