mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
log post purges
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.logPostPurge = function(uid, pid) {
|
||||||
|
events.logWithUser(uid, 'purged post (pid ' + pid + ')');
|
||||||
|
};
|
||||||
|
|
||||||
events.logTopicMove = function(uid, tid) {
|
events.logTopicMove = function(uid, tid) {
|
||||||
events.logWithUser(uid, 'moved topic (tid ' + tid + ')');
|
events.logWithUser(uid, 'moved topic (tid ' + tid + ')');
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ var winston = require('winston'),
|
|||||||
if (err || !canEdit) {
|
if (err || !canEdit) {
|
||||||
return callback(err || new Error('[[error:no-privileges]]'));
|
return callback(err || new Error('[[error:no-privileges]]'));
|
||||||
}
|
}
|
||||||
|
events.logPostPurge(uid, pid);
|
||||||
posts.purge(pid, callback);
|
posts.purge(pid, callback);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user