diff --git a/automod/rules/keyword.go b/automod/rules/keyword.go index ff2c644b4..3c9a6c6f4 100644 --- a/automod/rules/keyword.go +++ b/automod/rules/keyword.go @@ -1,6 +1,8 @@ package rules import ( + "fmt" + appbsky "github.com/bluesky-social/indigo/api/bsky" "github.com/bluesky-social/indigo/automod" ) @@ -9,6 +11,7 @@ func KeywordPostRule(evt *automod.RecordEvent, post *appbsky.FeedPost) error { for _, tok := range ExtractTextTokensPost(post) { if evt.InSet("bad-words", tok) { evt.AddRecordFlag("bad-word") + evt.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad-word: %s", tok)) break } } @@ -19,6 +22,7 @@ func KeywordProfileRule(evt *automod.RecordEvent, profile *appbsky.ActorProfile) for _, tok := range ExtractTextTokensProfile(profile) { if evt.InSet("bad-words", tok) { evt.AddRecordFlag("bad-word") + evt.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad-word: %s", tok)) break } }