this repo has no description
0
fork

Configure Feed

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

Limit threads count total to 100

+3 -2
+1 -1
src/components/thread-badge.jsx
··· 13 13 const { t } = useLingui(); 14 14 const total = useContext(ThreadCountContext); 15 15 const hasIndex = index > 0; 16 - const hasTotal = (total || 0) > 0; 16 + const hasTotal = total > 0; 17 17 18 18 return ( 19 19 <div class="status-thread-badge">
+2 -1
src/pages/status.jsx
··· 527 527 : mappedNestedDescendants.filter((s) => s.thread); 528 528 const threadsCount = 529 529 (ancestorsIsThread ? ancestors.length : 0) + descendantsThread.length; 530 - if (threadsCount) { 530 + if (threadsCount > 0 && threadsCount < 100) { 531 + // Cap at 100 because there's no point showing 100+ 531 532 // Include hero as part of thread count 532 533 setThreadsCount(threadsCount + 1); 533 534 }