GrafeasGroup / blossom

The website. The app. The everything.
6 stars 3 forks source link

Add `submission/report` endpoint #317

Closed TimJentzsch closed 2 years ago

TimJentzsch commented 2 years ago

Relevant issue: Closes #315

Description:

This will add a new submission/report endpoint to report a given post to the moderators.

The endpoint can be called with a mandatory { "reason": "..." } body to send a report message to mod Slack. The message is the same that we had for the transcription app.

New features include that the report reason is now saved in the Submission object, as well as the ID of the Slack message. If a post is already removed from the queue or already has a report, no message will be sent to avoid duplicates.

Future Work:

Checklist: