mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 00:06:33 +02:00
refactor(socket.io): deprecate SocketModules.chats.getRaw in favour of api.chats.getRawMessage
This commit is contained in:
@@ -124,6 +124,10 @@ Chats.messages.get = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res, await api.chats.getMessage(req, { mid, roomId }));
|
||||
};
|
||||
|
||||
Chats.messages.getRaw = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res, await api.chats.getRawMessage(req, { ...req.params }));
|
||||
};
|
||||
|
||||
Chats.messages.edit = async (req, res) => {
|
||||
const { mid, roomId } = req.params;
|
||||
const { message } = req.body;
|
||||
|
||||
Reference in New Issue
Block a user