From cd17de550f2423a3251b65caaffd84b52c5cdc56 Mon Sep 17 00:00:00 2001 From: Kato Date: Wed, 2 Sep 2026 20:37:09 +0000 Subject: [PATCH] Fix: openProfileModal uses PROFILE_URL with sessionid --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index a81a64e..bb39d4f 100644 --- a/js/main.js +++ b/js/main.js @@ -265,7 +265,7 @@ async function openProfileModal() { const sessionid = getCookie('sessionid'); if (!sessionid) { alert('Bitte melden Sie sich an.'); return; } try { - const response = await fetch(USER_URL + '?sessionid=' + encodeURIComponent(sessionid)); + const response = await fetch(PROFILE_URL + '?sessionid=' + encodeURIComponent(sessionid)); console.log('openProfileModal response:', response.status, await response.clone().json()); if (response.ok) { const user = await response.json();