Merge branch 'media-role' into 'main'

Unrestrict media uploads

See merge request soapbox-pub/ditto!183
This commit is contained in:
Alex Gleason 2024-04-25 00:25:25 +00:00
commit e8c2c175af
1 changed files with 2 additions and 2 deletions

View File

@ -167,8 +167,8 @@ app.post('/api/v1/statuses/:id{[0-9a-f]{64}}/unreblog', requirePubkey, unreblogS
app.post('/api/v1/statuses', requirePubkey, createStatusController);
app.delete('/api/v1/statuses/:id{[0-9a-f]{64}}', requirePubkey, deleteStatusController);
app.post('/api/v1/media', requireRole('user', { validatePayload: false }), mediaController);
app.post('/api/v2/media', requireRole('user', { validatePayload: false }), mediaController);
app.post('/api/v1/media', mediaController);
app.post('/api/v2/media', mediaController);
app.get('/api/v1/timelines/home', requirePubkey, homeTimelineController);
app.get('/api/v1/timelines/public', publicTimelineController);