From d1491feed9151983095fee16ba963af7af42dec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 3 Oct 2018 19:16:32 -0400 Subject: [PATCH] add tid to topic rename and post delete restore events --- src/socket.io/posts/edit.js | 1 + src/socket.io/posts/tools.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/socket.io/posts/edit.js b/src/socket.io/posts/edit.js index 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.js index 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, });