From 450e679f5197cfe3101d2b3f032f3fabeadfc848 Mon Sep 17 00:00:00 2001 From: postscriptum Date: Thu, 22 May 2025 04:37:13 +0300 Subject: add missed replacement to the `mastoapi_get_handler` function (`search` case) --- mastoapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mastoapi.c') diff --git a/mastoapi.c b/mastoapi.c index dee73e8..0348ec6 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -15,6 +15,7 @@ #include "xs_url.h" #include "xs_mime.h" #include "xs_match.h" +#include "xs_unicode.h" #include "snac.h" @@ -1637,7 +1638,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, const char *aq = xs_dict_get(args, "q"); if (!xs_is_null(aq)) { - xs *q = xs_tolower_i(xs_dup(aq)); + xs *q = xs_utf8_to_lower(xs_dup(aq)); out = xs_list_new(); xs *wing = following_list(&snac1); xs *wers = follower_list(&snac1); -- cgit v1.2.3