log post purges

This commit is contained in:
barisusakli
2014-10-15 15:57:37 -04:00
parent 90224d2de3
commit 80489c6564
2 changed files with 5 additions and 1 deletions

View File

@@ -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 + ')');
}; };

View File

@@ -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);
}); });
}; };