mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Local tag links now point to the search by tag URL.
This commit is contained in:
parent
55d3ef5024
commit
c1502219bb
1 changed files with 1 additions and 1 deletions
|
@ -587,7 +587,7 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag)
|
||||||
/* hashtag */
|
/* hashtag */
|
||||||
xs *d = xs_dict_new();
|
xs *d = xs_dict_new();
|
||||||
xs *n = xs_tolower_i(xs_dup(v));
|
xs *n = xs_tolower_i(xs_dup(v));
|
||||||
xs *h = xs_fmt("%s%s", snac->actor, n);
|
xs *h = xs_fmt("%s?t=%s", srv_baseurl, n + 1);
|
||||||
xs *l = xs_fmt("<a href=\"%s\" class=\"mention hashtag\" rel=\"tag\">%s</a>", h, v);
|
xs *l = xs_fmt("<a href=\"%s\" class=\"mention hashtag\" rel=\"tag\">%s</a>", h, v);
|
||||||
|
|
||||||
d = xs_dict_append(d, "type", "Hashtag");
|
d = xs_dict_append(d, "type", "Hashtag");
|
||||||
|
|
Loading…
Reference in a new issue