diff --git a/automod/rules/interaction.go b/automod/rules/interaction.go index fc4cadc42..e1e4eb506 100644 --- a/automod/rules/interaction.go +++ b/automod/rules/interaction.go @@ -1,6 +1,8 @@ package rules import ( + "fmt" + "github.com/bluesky-social/indigo/automod" ) @@ -18,6 +20,7 @@ func InteractionChurnRule(evt *automod.RecordEvent) error { if created > interactionDailyThreshold && deleted > interactionDailyThreshold && ratio > 0.5 { evt.Logger.Info("high-like-churn", "created-today", created, "deleted-today", deleted) evt.AddAccountFlag("high-like-churn") + evt.ReportAccount(automod.ReportReasonSpam, fmt.Sprintf("interaction churn: %d likes, %d unlikes today (so far)", created, deleted)) } case "app.bsky.graph.follow": evt.Increment("follow", did) @@ -27,6 +30,7 @@ func InteractionChurnRule(evt *automod.RecordEvent) error { if created > interactionDailyThreshold && deleted > interactionDailyThreshold && ratio > 0.5 { evt.Logger.Info("high-follow-churn", "created-today", created, "deleted-today", deleted) evt.AddAccountFlag("high-follow-churn") + evt.ReportAccount(automod.ReportReasonSpam, fmt.Sprintf("interaction churn: %d follows, %d unfollows today (so far)", created, deleted)) } } return nil