Fix: openProfileModal uses PROFILE_URL with sessionid
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user