this repo has no description
0
fork

Configure Feed

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

fix label limit not working

+9 -1
+9 -1
src/label.ts
··· 40 40 return; 41 41 } 42 42 43 - if (labels && labels.data.labels.length >= 4) return; 43 + if (labels) { 44 + const labelCount = labels.data.labels.reduce((set, label) => { 45 + if (!label.neg) set.add(label.val); 46 + else set.delete(label.val); 47 + return set; 48 + }, new Set()).size; 49 + 50 + if (labelCount >= 4) return; 51 + } 44 52 45 53 if (PRONOUNS[post]) { 46 54 await agent