2
0

Fix some routes for numeric AP identifiers (#36304)

This commit is contained in:
Claire
2025-09-30 17:09:59 +02:00
committed by GitHub
parent 473bd84c24
commit 5af40ff960
3 changed files with 34 additions and 4 deletions

View File

@@ -220,6 +220,12 @@ RSpec.describe 'ActivityPub Replies' do
it_behaves_like 'allowed access'
end
context 'with no signature and requesting the numeric AP path' do
subject { get ap_account_status_replies_path(account_id: status.account_id, status_id: status.id, only_other_accounts: only_other_accounts) }
it_behaves_like 'allowed access'
end
context 'with signature' do
subject { get account_status_replies_path(account_username: status.account.username, status_id: status.id, only_other_accounts: only_other_accounts), headers: nil, sign_with: remote_querier }