Cyber Slider Feature added

This commit is contained in:
Ramses Revengeday 2024-11-15 21:57:26 +00:00
parent 7414759d9d
commit c7b40f9711

View file

@ -199,10 +199,10 @@ class ApiClient {
constructor(instance) { constructor(instance) {
this._instance = instance; this._instance = instance;
// How many objects to max consider per type // How many objects to max consider per type
this._CNT_NOTES = 70; this._CNT_NOTES = 250;
this._CNT_RENOTES = 50; this._CNT_RENOTES = 250;
this._CNT_REPLIES = 100; this._CNT_REPLIES = 250;
this._CNT_FAVS = 100; this._CNT_FAVS = 250;
} }
/** /**
@ -949,6 +949,12 @@ async function circleMain() {
break; break;
} }
const sliderValue = getSliderValue();
client._CNT_NOTES = sliderValue;
client._CNT_RENOTES = sliderValue;
client._CNT_REPLIES = sliderValue;
client._CNT_FAVS = sliderValue;
progress.innerText = "Fetching your user..."; progress.innerText = "Fetching your user...";
const { response: user, error: userError } = await client.getUserIdFromHandle(selfUser); const { response: user, error: userError } = await client.getUserIdFromHandle(selfUser);
@ -974,6 +980,7 @@ async function circleMain() {
return; return;
} }
/** /**
* @type {Map<string, RatedUser>} * @type {Map<string, RatedUser>}
*/ */