diff --git a/automod/rules/replies.go b/automod/rules/replies.go index dac87aca8..c810be6c7 100644 --- a/automod/rules/replies.go +++ b/automod/rules/replies.go @@ -1,6 +1,8 @@ package rules import ( + "unicode/utf8" + appbsky "github.com/bluesky-social/indigo/api/bsky" "github.com/bluesky-social/indigo/atproto/syntax" "github.com/bluesky-social/indigo/automod" @@ -40,7 +42,7 @@ func IdenticalReplyPostRule(evt *automod.RecordEvent, post *appbsky.FeedPost) er } // short reply? ignore it - if len(post.Text) <= 8 { + if utf8.RuneCountInString(post.Text) <= 10 { return nil }