Node.js based forum software built for the modern web
fix timestamp on posts.reply
barisusakli3b0eca3be2a4
diff --git a/src/socket.io/posts.js b/src/socket.io/posts.jsindex 3251c3700c..6c86458fc2 100644--- a/src/socket.io/posts.js+++ b/src/socket.io/posts.js@@ -30,6 +30,7 @@ SocketPosts.reply = function(socket, data, callback) {data.uid = socket.uid;data.req = websockets.reqFromSocket(socket);+ data.timestamp = Date.now();topics.reply(data, function(err, postData) {if (err) {diff --git a/src/topics/create.js b/src/topics/create.jsindex cd1bf23a62..65f829c694 100644--- a/src/topics/create.js+++ b/src/topics/create.js@@ -230,7 +230,15 @@ module.exports = function(Topics) {check(content, meta.config.minimumPostLength, meta.config.maximumPostLength, 'content-too-short', 'content-too-long', next);},function(next) {- posts.create({uid: uid, tid: tid, handle: data.handle, content: content, toPid: data.toPid, timestamp: data.timestamp, ip: data.req ? data.req.ip : null}, next);+ posts.create({+ uid: uid,+ tid: tid,+ handle: data.handle,+ content: content,+ toPid: data.toPid,+ timestamp: data.timestamp,+ ip: data.req ? data.req.ip : null+ }, next);},function(_postData, next) {postData = _postData;