mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
changes to templates
This commit is contained in:
@@ -153,7 +153,11 @@ var winston = require('winston'),
|
||||
|
||||
// Delete the thread if it is the last undeleted post
|
||||
threadTools.getLatestUndeletedPid(postData.tid, function(err, pid) {
|
||||
if (err && err.message === 'no-undeleted-pids-found') {
|
||||
if(err) {
|
||||
return winston.error(err.message);
|
||||
}
|
||||
|
||||
if (!pid) {
|
||||
threadTools.delete(postData.tid, uid, function(err) {
|
||||
if (err) {
|
||||
winston.error('Could not delete topic (tid: ' + postData.tid + ')', err.stack);
|
||||
@@ -166,7 +170,6 @@ var winston = require('winston'),
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
callback(null);
|
||||
});
|
||||
};
|
||||
@@ -182,7 +185,6 @@ var winston = require('winston'),
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
PostTools.restore = function(uid, pid, callback) {
|
||||
|
||||
Reference in New Issue
Block a user