1
0
Эх сурвалжийг харах

Local tag links now point to the search by tag URL.

default 2 жил өмнө
parent
commit
c1502219bb
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      activitypub.c

+ 1 - 1
activitypub.c

@@ -587,7 +587,7 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag)
                 /* hashtag */
                 xs *d = xs_dict_new();
                 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);
 
                 d = xs_dict_append(d, "type",   "Hashtag");