diff --git a/src/events.js b/src/events.js index 37e43f3d01..d24c6aec4f 100644 --- a/src/events.js +++ b/src/events.js @@ -62,6 +62,10 @@ var fs = require('fs'), 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.logWithUser(uid, 'moved topic (tid ' + tid + ')'); }; diff --git a/src/postTools.js b/src/postTools.js index 009d4bde56..4e6206ac34 100644 --- a/src/postTools.js +++ b/src/postTools.js @@ -166,7 +166,7 @@ var winston = require('winston'), if (err || !canEdit) { return callback(err || new Error('[[error:no-privileges]]')); } - + events.logPostPurge(uid, pid); posts.purge(pid, callback); }); };