This commit is contained in:
2026-07-17 17:01:49 +02:00
parent 2ff53b6513
commit cba0f77732
3 changed files with 6 additions and 4 deletions

View File

@@ -16822,3 +16822,4 @@ a.lazy-thumb.filtered-upload-ghost:hover::after {
.edit-mode-active .avatar-image-wrapper .profile-avatar-img:hover {
filter: brightness(0.6);
}
.edit-mode-active #inline-banner-edit-wrapper { display: block !important; }

View File

@@ -7409,14 +7409,15 @@ class NotificationSystem {
}
if (userName) {
const userHref = `/user/${userName}`;
const lowerHref = `/user/${userName.toLowerCase()}`;
const exactHref = `/user/${userName}`;
// Sidebar / thread comment author links
document.querySelectorAll(`.comment-author[href="${userHref}"]`).forEach(el => {
document.querySelectorAll(`.comment-author[href="${lowerHref}"], .comment-author[href="${exactHref}"]`).forEach(el => {
el.textContent = display_name || userName;
});
// Item view: the [username] link next to the item ID
const aUsername = document.getElementById('a_username');
if (aUsername && aUsername.getAttribute('href') === userHref) {
if (aUsername && (aUsername.getAttribute('href') === lowerHref || aUsername.getAttribute('href') === exactHref)) {
aUsername.textContent = display_name || userName;
}
// Grid thumbnails: update data-user attribute (shown as CSS content on hover)