feat: Implement Content Reporting Backend
Deploy Development / deploy (push) Successful in 37s
Test Suite / pytest-backend (push) Successful in 35s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 11s
Test Suite / playwright-tests (push) Successful in 58s

- Added new API endpoints for content reporting, including submission, retrieval, and status updates.
- Created database migration for `content_reports` table to store report data.
- Integrated content reports into the existing admin inbox for better management.
- Implemented validation for report submissions, including required fields and email format.
- Added tests for content reporting functionality, covering various scenarios and edge cases.
- Updated frontend API utility to include new content report methods.
- Bumped app version to 0.8.87 and updated relevant page versions.
This commit is contained in:
Lars committed 2026-05-11 17:54:53 +02:00
1 parent 3c0e63757c
commit 60709df615
12 files changed
+1610 -116

No files matched your search

+12
View File
@@ -1592,6 +1592,18 @@ export const api = {
request(`/api/admin/legal-documents/${id}/copy-as-draft`, { method: 'POST' }),
getLegalDocumentAudit: (id) =>
request(`/api/admin/legal-documents/${id}/audit`),
// P-13: Content-Melde-Backend
submitContentReport: (body) =>
request('/api/content-reports', { method: 'POST', body: JSON.stringify(body) }),
getInboxContentReports: () =>
request('/api/me/inbox/content-reports'),
getContentReport: (id) =>
request(`/api/content-reports/${id}`),
patchContentReport: (id, body) =>
request(`/api/content-reports/${id}`, { method: 'PATCH', body: JSON.stringify(body) }),
setLegalHoldFromReport: (id, body) =>
request(`/api/content-reports/${id}/legal-hold`, { method: 'POST', body: JSON.stringify(body) }),
}
export default api