fdas
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user