This commit is contained in:
2026-08-19 22:34:23 +02:00
parent c644f7fa2a
commit 5c25182f6a
4 changed files with 33 additions and 15 deletions

View File

@@ -849,7 +849,12 @@ window.cancelAnimFrame = (function () {
if (e.target.closest('.nav-avatar-img')) {
const username = window.f0ckSession?.user;
if (username) {
window.location.href = `/user/${username.toLowerCase()}`;
const url = `/user/${username.toLowerCase()}`;
if (typeof window.loadPageAjax === 'function') {
window.loadPageAjax(url, true);
} else {
window.location.href = url;
}
return;
}
}
@@ -9275,7 +9280,12 @@ document.addEventListener("DOMContentLoaded", function () {
if (e.target.closest('.nav-avatar-img')) {
const username = window.f0ckSession?.user;
if (username) {
window.location.href = `/user/${username.toLowerCase()}`;
const url = `/user/${username.toLowerCase()}`;
if (typeof window.loadPageAjax === 'function') {
window.loadPageAjax(url, true);
} else {
window.location.href = url;
}
return;
}
}