🏗️」 wip: started fixing shit

This commit is contained in:
2025-10-24 15:07:33 +02:00
parent 71189c8dc2
commit 3a7033e554
12 changed files with 60 additions and 42 deletions

View File

@ -103,7 +103,7 @@ export default class extends Aview {
}
if (data.n_friends > 0) {
const list_req = await fetch(user_api + "/users/" + uuid + "/friends?iStart=0&iEnd=2147483647", {
const list_req = await fetch(user_api + "/users/" + uuid + "/friends?iStart=0&iEnd=50", {
method: "GET",
headers: {
"Content-Type": "application/json",

View File

@ -149,7 +149,7 @@ export default class extends Aview {
totpButton.innerHTML = "disable 2fa";
document.getElementById("2fa-button")?.addEventListener("click", async () => {
const totp_req = await fetch(`${user_api}/2fa`, {
const totp_req = await fetch(`${auth_api}/2fa`, {
method: "DELETE",
credentials: "include"
})
@ -164,7 +164,7 @@ export default class extends Aview {
totpButton.innerHTML = "enable 2fa";
document.getElementById("2fa-button")?.addEventListener("click", async () => {
const totp_req = await fetch(`${user_api}/2fa`, {
const totp_req = await fetch(`${auth_api}/2fa`, {
method: "POST",
credentials: "include"
})