aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpostscriptum <postscriptum@project>2025-05-22 04:37:13 +0300
committerpostscriptum <postscriptum@project>2025-05-22 04:37:13 +0300
commit450e679f5197cfe3101d2b3f032f3fabeadfc848 (patch)
tree540b16c23e5db6dc03278616b0b2d7c6b9a29ad1
parentec37139f5aac4f54d09f768c54195fb528fd3088 (diff)
add missed replacement to the `mastoapi_get_handler` function (`search` case)
-rw-r--r--mastoapi.c3
1 files changed, 2 insertions, 1 deletions
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);