mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: add userData to static:user.delete
This commit is contained in:
@@ -105,7 +105,7 @@ module.exports = function (User) {
|
|||||||
throw new Error('[[error:no-user]]');
|
throw new Error('[[error:no-user]]');
|
||||||
}
|
}
|
||||||
|
|
||||||
await plugins.hooks.fire('static:user.delete', { uid: uid });
|
await plugins.hooks.fire('static:user.delete', { uid: uid, userData: userData });
|
||||||
await deleteVotes(uid);
|
await deleteVotes(uid);
|
||||||
await deleteChats(uid);
|
await deleteChats(uid);
|
||||||
await User.auth.revokeAllSessions(uid);
|
await User.auth.revokeAllSessions(uid);
|
||||||
|
|||||||
Reference in New Issue
Block a user