this repo has no description
0
fork

Configure Feed

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

Also activate boosts carousel for serial boosts

+7 -1
+7 -1
src/pages/home.jsx
··· 52 52 if (snapStates.settings.boostsCarousel) { 53 53 let specialHome = []; 54 54 let boostStash = []; 55 + let serialBoosts = 0; 55 56 for (let i = 0; i < homeValues.length; i++) { 56 57 const status = homeValues[i]; 57 58 if (status.reblog) { 58 59 boostStash.push(status); 60 + serialBoosts++; 59 61 } else { 60 62 specialHome.push(status); 63 + if (serialBoosts < 3) { 64 + serialBoosts = 0; 65 + } 61 66 } 62 67 } 63 68 // if boostStash is more than quarter of homeValues 64 - if (boostStash.length > homeValues.length / 4) { 69 + // or if there are 3 or more boosts in a row 70 + if (boostStash.length > homeValues.length / 4 || serialBoosts >= 3) { 65 71 // if boostStash is more than 3 quarter of homeValues 66 72 const boostStashID = boostStash.map((status) => status.id); 67 73 if (boostStash.length > (homeValues.length * 3) / 4) {