mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 23:30:36 +01:00
wow.
This commit is contained in:
@@ -14,7 +14,7 @@ var websockets = require('../index');
|
||||
module.exports = function (SocketPosts) {
|
||||
SocketPosts.edit = function (socket, data, callback) {
|
||||
// Trim and remove HTML (latter for composers that send in HTML, like redactor)
|
||||
var contentLen = S(data.content.length).stripTags().s.trim().length;
|
||||
var contentLen = S(data.content).stripTags().s.trim().length;
|
||||
|
||||
if (!socket.uid) {
|
||||
return callback(new Error('[[error:not-logged-in]]'));
|
||||
|
||||
Reference in New Issue
Block a user