mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
fix: #7953, allow icon only group badges
This commit is contained in:
@@ -51,6 +51,7 @@ editController.get = async function (req, res, next) {
|
||||
return i1 - i2;
|
||||
});
|
||||
userData.groups.forEach(function (group) {
|
||||
group.userTitle = group.userTitle || group.displayName;
|
||||
group.selected = userData.groupTitleArray.includes(group.name);
|
||||
});
|
||||
userData.groupSelectSize = Math.min(10, Math.max(5, userData.groups.length + 1));
|
||||
|
||||
Reference in New Issue
Block a user