From 2247d396c921fe30fb3f411959b968de729b63ef Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 6 Jun 2023 22:09:24 +0000 Subject: [PATCH] Use ilike instead of like for case insensitive search --- mastosearch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastosearch b/mastosearch index 349837c..1772b87 100755 --- a/mastosearch +++ b/mastosearch @@ -1,3 +1,3 @@ #!/usr/bin/bash -sudo -u mastodon PAGER=less psql -c "select * from statuses where text like '%$@%'" +sudo -u mastodon PAGER=less psql -c "select * from statuses where text ilike '%$@%'"