mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
#1281 topic purge
This commit is contained in:
@@ -28,11 +28,11 @@ module.exports = function(User) {
|
||||
};
|
||||
|
||||
function deletePosts(uid, callback) {
|
||||
deleteSortedSetElements('uid:' + uid + ':posts', posts.delete, callback);
|
||||
deleteSortedSetElements('uid:' + uid + ':posts', posts.purge, callback);
|
||||
}
|
||||
|
||||
function deleteTopics(uid, callback) {
|
||||
deleteSortedSetElements('uid:' + uid + ':topics', topics.delete, callback);
|
||||
deleteSortedSetElements('uid:' + uid + ':topics', topics.purge, callback);
|
||||
}
|
||||
|
||||
function deleteSortedSetElements(set, deleteMethod, callback) {
|
||||
|
||||
Reference in New Issue
Block a user