From a68c8c1618db710a90c56be6c73c61b690fe6be2 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Fri, 17 Jul 2026 23:39:36 +0200 Subject: [PATCH] eridi --- public/s/js/f0ckm.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/s/js/f0ckm.js b/public/s/js/f0ckm.js index 755eab7..e56eb2e 100644 --- a/public/s/js/f0ckm.js +++ b/public/s/js/f0ckm.js @@ -8588,6 +8588,10 @@ class NotificationSystem { } handleNewItem(data) { + // Invalidate client-side caches so next/prev navigation knows about the new item + if (typeof itemCacheMap !== 'undefined') itemCacheMap.clear(); + if (typeof gridCacheMap !== 'undefined') gridCacheMap.clear(); + // Only prepend to the grid on the main/index page const grid = document.querySelector('.posts'); if (!grid) return;