api: Add a new endpoint for message reporting.

This adds a new API endpoint that enables users to report messages for
review by admins or moderators. Reports will be sent to the
`moderate_request_channel`, so it must be configured for this feature to
be enabled.

Fixes part of #20047.

Co-authored-by: Adam Sah <140002+asah@users.noreply.github.com>
This commit is contained in:
PieterCK
2025-01-03 16:45:30 +07:00
committed by Tim Abbott
parent 862298ad16
commit 0814fb88c1
12 changed files with 569 additions and 3 deletions

View File

@@ -18,6 +18,7 @@
* [Mark messages in a channel as read](/api/mark-stream-as-read)
* [Mark messages in a topic as read](/api/mark-topic-as-read)
* [Get a message's read receipts](/api/get-read-receipts)
* [Report a message](/api/report-message)
#### Scheduled messages