1018 B
1018 B
Moderation System
Table of contents
General Description
The moderation system allows certain users ("moderators") chosen by the administrator user to perform various tasks.
Interfaces
interface Action {
id: string;
account_id: string;
type: string;
categories: string[];
/**
* A list of resource `id`s affected by the action.
*/
entity_ids: string[];
status: "completed" | "failed" | "reverted";
created_at: Date;
}
Technical Description
Process
Moderator
- When the role of an account changes to
moderator
, the account gets notified of this. - The account then can access
/mod
endpoint, which leads to the moderator dashboard. On this page the mod can see various stats, among them is the list of varioustasks
. - Each performed
task
results in anaction
.