eridi
This commit is contained in:
@@ -8588,6 +8588,10 @@ class NotificationSystem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleNewItem(data) {
|
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
|
// Only prepend to the grid on the main/index page
|
||||||
const grid = document.querySelector('.posts');
|
const grid = document.querySelector('.posts');
|
||||||
if (!grid) return;
|
if (!grid) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user