Skip to content

Commit

Permalink
cmd/bsky-webhook: matches aren't case-sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Erisa committed Nov 15, 2024
1 parent 1406a14 commit c5cca1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/bsky-webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit c5cca1a

Please sign in to comment.