mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-25 23:31:39 +02:00
backport user delete fix
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = function(User) {
|
||||
|
||||
function deletePosts(callerUid, uid, callback) {
|
||||
batch.processSortedSet('uid:' + uid + ':posts', function(ids, next) {
|
||||
async.eachSeries(ids, function(pid, netx) {
|
||||
async.eachSeries(ids, function(pid, next) {
|
||||
posts.purge(pid, callerUid, next);
|
||||
}, next);
|
||||
}, {alwaysStartAt: 0}, callback);
|
||||
|
||||
Reference in New Issue
Block a user