This commit is contained in:
2026-05-23 08:45:59 +02:00
parent 0d85ff0535
commit 1be9216624

View File

@@ -3065,7 +3065,7 @@ window.cancelAnimFrame = (function () {
} }
// Check for thumbnail links on index page // Check for thumbnail links on index page
const thumbnail = target.closest('.posts > a'); const thumbnail = target.closest('.posts > a:not(.notif-item)');
if (thumbnail && !e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey) { if (thumbnail && !e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey) {
e.preventDefault(); e.preventDefault();
// Thumbnails inherit context (e.g. from Tag Index) // Thumbnails inherit context (e.g. from Tag Index)
@@ -5984,6 +5984,8 @@ class NotificationSystem {
} else { } else {
window.location.href = href; window.location.href = href;
} }
} else {
e.preventDefault();
} }
}; };