commit c150221

default  ·  2023-11-08 08:32:02 +0000 UTC
parent 55d3ef5
Local tag links now point to the search by tag URL.
1 files changed,  +1, -1
+1, -1
1@@ -587,7 +587,7 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag)
2                 /* hashtag */
3                 xs *d = xs_dict_new();
4                 xs *n = xs_tolower_i(xs_dup(v));
5-                xs *h = xs_fmt("%s%s", snac->actor, n);
6+                xs *h = xs_fmt("%s?t=%s", srv_baseurl, n + 1);
7                 xs *l = xs_fmt("<a href=\"%s\" class=\"mention hashtag\" rel=\"tag\">%s</a>", h, v);
8 
9                 d = xs_dict_append(d, "type",   "Hashtag");