snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 450e679f5197cfe3101d2b3f032f3fabeadfc848
parent ec37139f5aac4f54d09f768c54195fb528fd3088
Author: postscriptum <postscriptum@project>
Date:   Thu, 22 May 2025 04:37:13 +0300

add missed replacement to the `mastoapi_get_handler` function (`search` case)

Diffstat:
Mmastoapi.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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);