mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
fix: #7086
This commit is contained in:
@@ -36,7 +36,10 @@ module.exports = function (Messaging) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
content = String(data.content);
|
||||
content = String(data.content).trim();
|
||||
if (!content) {
|
||||
return callback(new Error('[[error:invalid-chat-message]]'));
|
||||
}
|
||||
|
||||
var maximumChatMessageLength = (meta.config.maximumChatMessageLength || 1000);
|
||||
if (content.length > maximumChatMessageLength) {
|
||||
|
||||
Reference in New Issue
Block a user