this repo has no description
0
fork

Configure Feed

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

:sparkles: Special case for newsmast bridge feeds

authored by

Foysal Ahamed and committed by
bnewbold
082d2bcc ec001d7b

+7
+7
automod/rules/reposts.go
··· 1 1 package rules 2 2 3 3 import ( 4 + "strings" 4 5 "time" 5 6 6 7 "github.com/bluesky-social/indigo/automod" ··· 23 24 if age > 30*24*time.Hour { 24 25 return nil 25 26 } 27 + } 28 + 29 + // Special case for newsmast bridge feeds 30 + handle := c.Account.Identity.Handle.String() 31 + if strings.HasSuffix(handle, "newsmast.community.ap.brid.gy") { 32 + return nil 26 33 } 27 34 28 35 switch c.RecordOp.Collection {