diff options
| author | 2025-05-22 03:34:48 +0300 | |
|---|---|---|
| committer | 2025-05-22 03:34:48 +0300 | |
| commit | 24105f6e9759b74c04522de1de12ddb77cfba568 (patch) | |
| tree | cd367a707541dcfee760319f47c21d1ac75c9ab9 /activitypub.c | |
| parent | Operations on the 'people' page redirects back to it instead of 'admin'. (diff) | |
| download | penes-snac2-24105f6e9759b74c04522de1de12ddb77cfba568.tar.gz penes-snac2-24105f6e9759b74c04522de1de12ddb77cfba568.tar.xz penes-snac2-24105f6e9759b74c04522de1de12ddb77cfba568.zip | |
use utf-8 lowercase function for tags #396
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index a7e133a..3ff51ad 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -903,7 +903,7 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag) | |||
| 903 | if (*v == '#') { | 903 | if (*v == '#') { |
| 904 | /* hashtag */ | 904 | /* hashtag */ |
| 905 | xs *d = xs_dict_new(); | 905 | xs *d = xs_dict_new(); |
| 906 | xs *n = xs_tolower_i(xs_dup(v)); | 906 | xs *n = xs_utf8_to_lower(xs_dup(v)); |
| 907 | xs *h = xs_fmt("%s?t=%s", srv_baseurl, n + 1); | 907 | xs *h = xs_fmt("%s?t=%s", srv_baseurl, n + 1); |
| 908 | xs *l = xs_fmt("<a href=\"%s\" class=\"mention hashtag\" rel=\"tag\">%s</a>", h, v); | 908 | xs *l = xs_fmt("<a href=\"%s\" class=\"mention hashtag\" rel=\"tag\">%s</a>", h, v); |
| 909 | 909 | ||