mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
add tid to topic rename and post delete restore events
This commit is contained in:
@@ -51,6 +51,7 @@ module.exports = function (SocketPosts) {
|
|||||||
type: 'topic-rename',
|
type: 'topic-rename',
|
||||||
uid: socket.uid,
|
uid: socket.uid,
|
||||||
ip: socket.ip,
|
ip: socket.ip,
|
||||||
|
tid: result.topic.tid,
|
||||||
oldTitle: validator.escape(String(result.topic.oldTitle)),
|
oldTitle: validator.escape(String(result.topic.oldTitle)),
|
||||||
newTitle: validator.escape(String(result.topic.title)),
|
newTitle: validator.escape(String(result.topic.title)),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ module.exports = function (SocketPosts) {
|
|||||||
type: 'post-delete',
|
type: 'post-delete',
|
||||||
uid: socket.uid,
|
uid: socket.uid,
|
||||||
pid: data.pid,
|
pid: data.pid,
|
||||||
|
tid: postData.tid,
|
||||||
ip: socket.ip,
|
ip: socket.ip,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -143,6 +144,7 @@ module.exports = function (SocketPosts) {
|
|||||||
type: 'post-restore',
|
type: 'post-restore',
|
||||||
uid: socket.uid,
|
uid: socket.uid,
|
||||||
pid: data.pid,
|
pid: data.pid,
|
||||||
|
tid: postData.tid,
|
||||||
ip: socket.ip,
|
ip: socket.ip,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user