mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-19 11:12:49 +00:00
feat(dashboard): chat flags queue
Staff flag chat for review (chat_flag): one message or several from one conversation, with who it is about and a note. The flag keeps a copy of the messages and 10 before and after. The Chat Flags page (Inbox, badge for open flags) filters by status, character and account; a flag links to the character, the account (mute, warn, ban), their player reports, their other flags and the conversation, and shows its history. Reviewers (chat_flag_review) mark it actioned or dismissed, change the note, link a player report or comment; all of it is in the flag's history and the audit log. The sidebar adds Team Chat. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
#include "Permissions.h"
|
||||
#include "VanityRoutes.h"
|
||||
#include "ChatRoutes.h"
|
||||
#include "ChatFlagRoutes.h"
|
||||
#include "Strikes.h"
|
||||
#include "ModerationTools.h"
|
||||
#include "ModeratorHelper.h"
|
||||
@@ -547,6 +548,7 @@ int main(int argc, char** argv) {
|
||||
Game::web.SetWSApiAccessCallback([](const WSAuth& auth) { return Permissions::Allowed(auth.level, "api_access", nullptr, auth.grants.get()); });
|
||||
RegisterVanityRoutes();
|
||||
RegisterChatRoutes();
|
||||
ChatFlagRoutes::RegisterRoutes();
|
||||
RegisterStrikeRoutes();
|
||||
RegisterModerationToolRoutes();
|
||||
ModeratorHelper::RegisterRoutes();
|
||||
|
||||
Reference in New Issue
Block a user