mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
log topic move
This commit is contained in:
@@ -62,6 +62,10 @@ var fs = require('fs'),
|
|||||||
events.logWithUser(uid, 'restored post (pid ' + pid + ')');
|
events.logWithUser(uid, 'restored post (pid ' + pid + ')');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
events.logTopicMove = function(uid, tid) {
|
||||||
|
events.logWithUser(uid, 'moved topic (tid ' + tid + ')');
|
||||||
|
};
|
||||||
|
|
||||||
events.logTopicDelete = function(uid, tid) {
|
events.logTopicDelete = function(uid, tid) {
|
||||||
events.logWithUser(uid, 'deleted topic (tid ' + tid + ')');
|
events.logWithUser(uid, 'deleted topic (tid ' + tid + ')');
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -207,6 +207,8 @@ var winston = require('winston'),
|
|||||||
|
|
||||||
topics.setTopicField(tid, 'cid', cid, callback);
|
topics.setTopicField(tid, 'cid', cid, callback);
|
||||||
|
|
||||||
|
events.logTopicMove(uid, tid);
|
||||||
|
|
||||||
plugins.fireHook('action:topic.move', {
|
plugins.fireHook('action:topic.move', {
|
||||||
tid: tid,
|
tid: tid,
|
||||||
fromCid: oldCid,
|
fromCid: oldCid,
|
||||||
|
|||||||
Reference in New Issue
Block a user