removed sanitisation of chat message body, as messages are "parsed as a post" now.

This commit is contained in:
Julian Lam
2015-04-16 20:21:56 -04:00
parent 4e793995a0
commit 078d76a11b

View File

@@ -148,8 +148,6 @@ SocketModules.chats.send = function(socket, data, callback) {
return;
}
var msg = S(data.message).stripTags().s;
var now = Date.now();
socket.lastChatMessageTime = socket.lastChatMessageTime || 0;
@@ -177,7 +175,7 @@ SocketModules.chats.send = function(socket, data, callback) {
return callback(err || new Error('[[error:chat-restricted]]'));
}
Messaging.addMessage(socket.uid, touid, msg, function(err, message) {
Messaging.addMessage(socket.uid, touid, data.message, function(err, message) {
if (err) {
return callback(err);
}