Cursed caching bug fix

This commit is contained in:
Natsumi
2021-09-21 10:57:52 +12:00
parent 7a83c31f0c
commit b85075de53

View File

@@ -2985,8 +2985,9 @@ speechSynthesis.getVoices();
};
API.refreshFavoriteAvatars = function (tag) {
var n = Math.floor(Math.random() * (50 + 1)) + 50;
var params = {
n: 100,
n,
offset: 0,
tag
};
@@ -3017,22 +3018,24 @@ speechSynthesis.getVoices();
if (N > 0) {
if (type === 'avatar') {
for (var tag of tags) {
var n = Math.floor(Math.random() * (50 + 1)) + 50;
this.bulk({
fn,
N,
params: {
n: 100,
n,
offset: 0,
tag
}
});
}
} else {
var n = Math.floor(Math.random() * (50 + 1)) + 50;
this.bulk({
fn,
N,
params: {
n: 50,
n,
offset: 0
}
});