This commit is contained in:
2026-09-11 23:26:20 +02:00
parent 4b615428de
commit 3dda406954
6 changed files with 25 additions and 49 deletions
+8 -6
View File
@@ -8633,12 +8633,14 @@ class NotificationSystem {
aUsername.textContent = display_name || userName;
}
// Grid thumbnails: update data-user attribute (shown as CSS content on hover)
document.querySelectorAll('.thumb[data-user]').forEach(el => {
const cur = el.getAttribute('data-user');
if (cur === userName || (oldDisplayName && cur === oldDisplayName)) {
el.setAttribute('data-user', display_name || userName);
}
});
if (!window.f0ckSession?.guest_anonymize) {
document.querySelectorAll('.thumb[data-user]').forEach(el => {
const cur = el.getAttribute('data-user');
if (cur === userName || (oldDisplayName && cur === oldDisplayName)) {
el.setAttribute('data-user', display_name || userName);
}
});
}
}
};