mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: delete follower/followingCount as well
This commit is contained in:
@@ -28,7 +28,7 @@ module.exports = {
|
|||||||
fields.push(field);
|
fields.push(field);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
['profileviews', 'reputation', 'postcount', 'topiccount', 'lastposttime', 'banned'].forEach((field) => {
|
['profileviews', 'reputation', 'postcount', 'topiccount', 'lastposttime', 'banned', 'followerCount', 'followingCount'].forEach((field) => {
|
||||||
if (user[field] === 0) {
|
if (user[field] === 0) {
|
||||||
fields.push(field);
|
fields.push(field);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user