this repo has no description
0
fork

Configure Feed

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

automod: Increment repostCount too

authored by

Foysal Ahamed and committed by
bnewbold
4fff3112 8f055c5e

+1 -1
+1 -1
automod/rules/reposts.go
··· 28 28 c.Increment("post", did) 29 29 case "app.bsky.feed.repost": 30 30 c.Increment("repost", did) 31 - repostCount := c.GetCount("repost", did, countstore.PeriodDay) 32 31 // +1 to avoid potential divide by 0 issue 32 + repostCount := c.GetCount("repost", did, countstore.PeriodDay) + 1 33 33 postCount := c.GetCount("post", did, countstore.PeriodDay) + 1 34 34 ratio := float64(repostCount) / float64(postCount) 35 35 if repostCount > repostDailyThreshold && ratio > 0.8 {