From c5cca1a948dcf484eccbce5f2b9587aaa27113aa Mon Sep 17 00:00:00 2001 From: Erisa A Date: Fri, 15 Nov 2024 13:13:18 +0000 Subject: [PATCH] cmd/bsky-webhook: matches aren't case-sensitive --- cmd/bsky-webhook/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bsky-webhook/main.go b/cmd/bsky-webhook/main.go index 571977a..252dc2b 100644 --- a/cmd/bsky-webhook/main.go +++ b/cmd/bsky-webhook/main.go @@ -234,7 +234,7 @@ func readJetstreamMessage(ctx context.Context, jetstreamMessageEncoded []byte, b return nil } - if strings.Contains(bskyMessage.Commit.Record.Text, *watchWord) { + if strings.Contains(strings.ToLower(bskyMessage.Commit.Record.Text), strings.ToLower(*watchWord)) { jetstreamMessageStr := string(jetstreamMessage) go func() {