From 9a6b87d261cf6efc23ba64bea90bf4b5bc5efd46 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 6 Jul 2020 16:27:07 -0400 Subject: [PATCH] fix: editing chat messages does not go through content sanity checks --- src/messaging/edit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/messaging/edit.js b/src/messaging/edit.js index add728c416..22a82a0d50 100644 --- a/src/messaging/edit.js +++ b/src/messaging/edit.js @@ -8,6 +8,7 @@ const sockets = require('../socket.io'); module.exports = function (Messaging) { Messaging.editMessage = async (uid, mid, roomId, content) => { + await Messaging.checkContent(content); const raw = await Messaging.getMessageField(mid, 'content'); if (raw === content) { return;