fix: admin/accounts: group "members" show duplicates in case of nested groups

Massimo Melina committed Feb 23, 2025 at 16:57 UTC 8078f61411b77732cc8f59636eb1461ba3074086
1 file changed +1 -1
src/api.accounts.ts
+1 -1
@@ -25,7 +25,7 @@ function prepareAccount(ac: Account | undefined) {
25 news = accounts.filter(a => a.belongs?.some(x => news.includes(x))).map(x => x.username)
26 ret.push(...news)
27 }
28 - return ret.sort()
28 + return _.uniq(ret).sort()
29 })
30 }
31 }