Node.js based forum software built for the modern web
add tid to topic rename and post delete restore events
Barış Soner Uşaklıd1491feed915
diff --git a/src/socket.io/posts/edit.js b/src/socket.io/posts/edit.jsindex 48f750c2ce..296e3e2cb4 100644--- a/src/socket.io/posts/edit.js+++ b/src/socket.io/posts/edit.js@@ -51,6 +51,7 @@ module.exports = function (SocketPosts) {type: 'topic-rename',uid: socket.uid,ip: socket.ip,+ tid: result.topic.tid,oldTitle: validator.escape(String(result.topic.oldTitle)),newTitle: validator.escape(String(result.topic.title)),});diff --git a/src/socket.io/posts/tools.js b/src/socket.io/posts/tools.jsindex 96bd3a2ad7..baec3a8483 100644--- a/src/socket.io/posts/tools.js+++ b/src/socket.io/posts/tools.js@@ -108,6 +108,7 @@ module.exports = function (SocketPosts) {type: 'post-delete',uid: socket.uid,pid: data.pid,+ tid: postData.tid,ip: socket.ip,});@@ -143,6 +144,7 @@ module.exports = function (SocketPosts) {type: 'post-restore',uid: socket.uid,pid: data.pid,+ tid: postData.tid,ip: socket.ip,});