Merge commit from fork
* Fix GHSA-7jvv-fhmg-wpfw * Fix GHSA-hx34-2pfw-2qfj * Fix GHSA-vwhj-3g83-v276 * Bump version to v4.6.4
This commit is contained in:
1 parent
90553a2f33
commit
5d7e3bbd17
11 files changed
+67
-19
No files matched your search
@@ -20,6 +20,8 @@ RSpec.describe 'Admin Measures' do
|
||||
domain: 'mastodon.social',
|
||||
include_subdomains: true,
|
||||
},
|
||||
start_at: '2026-01-01',
|
||||
end_at: '2026-07-01',
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ RSpec.describe 'Admin Retention' do
|
||||
describe 'GET /api/v1/admin/retention' do
|
||||
context 'when not authorized' do
|
||||
it 'returns http forbidden' do
|
||||
post '/api/v1/admin/retention', params: { account_id: account.id, limit: 2 }
|
||||
post '/api/v1/admin/retention', params: { start_at: '2025-01-04', end_at: '2025-07-05', frequency: 'month' }
|
||||
|
||||
expect(response)
|
||||
.to have_http_status(403)
|
||||
@@ -23,7 +23,7 @@ RSpec.describe 'Admin Retention' do
|
||||
let(:scopes) { 'admin:read' }
|
||||
|
||||
it 'returns http success and status json' do
|
||||
post '/api/v1/admin/retention', params: { account_id: account.id, limit: 2 }, headers: headers
|
||||
post '/api/v1/admin/retention', params: { start_at: '2025-01-04', end_at: '2025-07-05', frequency: 'month' }, headers: headers
|
||||
|
||||
expect(response)
|
||||
.to have_http_status(200)
|
||||
|
||||
Reference in new issue
Block a user