Chat moderation MVP
Introduces AdminAPI endpoints for viewing chats and deleting messages.
-
GET /api/pleroma/admin/users/:nickname/chats
-
GET /api/pleroma/admin/chats/:id
-
GET /api/pleroma/admin/chats/:id/messages
-
DELETE /api/pleroma/admin/chats/:id/messages/:message_id
-
Maybe allow reporting a specific chat messagefor another MR -
Proper pagination of endpoints -
Docs
My vision for AdminFE is that a user's profile will list their chats, and clicking into the chat will reveal the chat history. Messages can then be deleted. It's basically the Chat API with superuser capabilities.
I'll probably want to refactor it so both controllers call common functions, possibly a chat_api.ex module.
Edited by Alex Gleason