mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-27 07:04:24 +00:00
fixing silliness (2)
This commit is contained in:
parent
46d6264743
commit
a303cce847
@ -524,17 +524,26 @@ NewUserSearch.prototype = {
|
||||
this.isForced = false;
|
||||
}
|
||||
|
||||
for (var i = 0; i < block.usernames.length; i++) {
|
||||
var i = 0;
|
||||
for (; i < block.usernames.length; i++) {
|
||||
if (NewUserSearch.knownNewUsers.indexOf(block.usernames[i]) == -1) {
|
||||
processWhoToFollowSuggestion(args.args.module, block.usernames[i], undefined, args.args.prepend);
|
||||
if (args.args.prepend)
|
||||
NewUserSearch.knownNewUsers.unshift(block.usernames[i]);
|
||||
else
|
||||
NewUserSearch.knownNewUsers.push(block.usernames[i]);
|
||||
if (!args.args.live && NewUserSearch.knownNewUsers.length >= args.args.n + args.args.offset)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (args.args.prepend)
|
||||
NewUserSearch.knownNewUsers.unshift(block.usernames);
|
||||
else
|
||||
NewUserSearch.knownNewUsers.push(block.usernames);
|
||||
for (; i < block.usernames.length; i++) {
|
||||
if (NewUserSearch.knownNewUsers.indexOf(block.usernames[i]) == -1) {
|
||||
if (args.args.prepend)
|
||||
NewUserSearch.knownNewUsers.unshift(block.usernames[i]);
|
||||
else
|
||||
NewUserSearch.knownNewUsers.push(block.usernames[i]);
|
||||
}
|
||||
}
|
||||
|
||||
this.save();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user