this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Prevent GC posts from notifications

+6 -2
+6 -2
src/app.jsx
··· 85 85 // Only posts for now 86 86 setInterval(() => { 87 87 if (!window.__IDLE__) return; 88 - const { statuses, unfurledLinks } = states; 88 + const { statuses, unfurledLinks, notifications } = states; 89 89 let keysCount = 0; 90 + const { instance } = api(); 90 91 for (const key in statuses) { 91 92 try { 92 93 const $post = document.querySelector(`[data-state-post-id~="${key}"]`); 93 - if (!$post) { 94 + const postInNotifications = notifications.some( 95 + (n) => key === statusKey(n.status?.id, instance), 96 + ); 97 + if (!$post && !postInNotifications) { 94 98 delete states.statuses[key]; 95 99 delete states.statusQuotes[key]; 96 100 for (const link in unfurledLinks) {