mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-12 16:07:59 +00:00
filter out group aliases from listwalletusers
This commit is contained in:
parent
658cb76b15
commit
4365e83028
@ -63,7 +63,13 @@ function incLastPostId( optionalNewValue ) {
|
||||
function loadWalletlUsers(cbFunc, cbArg) {
|
||||
twisterRpc("listwalletusers", [],
|
||||
function(args, ret) {
|
||||
localUsernames = ret;
|
||||
localUsernames = [];
|
||||
for( var i = 0; i < ret.length; i++ ) {
|
||||
// filter out group aliases
|
||||
if( ret.length && ret[i][0] !== '*' ) {
|
||||
localUsernames.push(ret[i]);
|
||||
}
|
||||
}
|
||||
args.cbFunc(args.cbArg);
|
||||
}, {cbFunc:cbFunc, cbArg:cbArg},
|
||||
function(args, ret) {
|
||||
|
Loading…
Reference in New Issue
Block a user