this repo has no description
0
fork

Configure Feed

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

Quick fix disappearing posts bug

+16 -4
+1 -1
src/app.jsx
··· 86 86 setInterval(() => { 87 87 const { statuses } = states; 88 88 for (const key in statuses) { 89 - const $post = document.querySelector(`[data-state-post-id="${key}"]`); 89 + const $post = document.querySelector(`[data-state-post-id~="${key}"]`); 90 90 if (!$post) { 91 91 delete states.statuses[key]; 92 92 }
+15 -3
src/components/status.jsx
··· 253 253 254 254 if (group) { 255 255 return ( 256 - <div class="status-group" onMouseEnter={debugHover}> 256 + <div 257 + data-state-post-id={sKey} 258 + class="status-group" 259 + onMouseEnter={debugHover} 260 + > 257 261 <div class="status-pre-meta"> 258 262 <Icon icon="group" size="l" alt="Group" />{' '} 259 263 <NameText account={status.account} instance={instance} showAvatar /> ··· 270 274 } 271 275 272 276 return ( 273 - <div class="status-reblog" onMouseEnter={debugHover}> 277 + <div 278 + data-state-post-id={sKey} 279 + class="status-reblog" 280 + onMouseEnter={debugHover} 281 + > 274 282 <div class="status-pre-meta"> 275 283 <Icon icon="rocket" size="l" />{' '} 276 284 <NameText account={status.account} instance={instance} showAvatar />{' '} ··· 2278 2286 ); 2279 2287 2280 2288 const statusPeekRef = useTruncated(); 2289 + const sKey = 2290 + statusKey(status.id, instance) + 2291 + ' ' + 2292 + (statusKey(reblog?.id, instance) || ''); 2281 2293 2282 2294 return ( 2283 2295 <div ··· 2290 2302 }} 2291 2303 {...bindLongPressPeek()} 2292 2304 > 2293 - <article class="status filtered" tabindex="-1"> 2305 + <article data-state-post-id={sKey} class="status filtered" tabindex="-1"> 2294 2306 <b 2295 2307 class="status-filtered-badge clickable badge-meta" 2296 2308 title={filterTitleStr}