diff options
| author | 2023-11-08 09:32:02 +0100 | |
|---|---|---|
| committer | 2023-11-08 09:32:02 +0100 | |
| commit | c1502219bb74daf13c987d599e367476e0c15081 (patch) | |
| tree | bc0dbadfc20be2fbf3e9e93e2cc7e9f339a1fd7d | |
| parent | Tags can now be searched for from the server base URL. (diff) | |
| download | snac2-c1502219bb74daf13c987d599e367476e0c15081.tar.gz snac2-c1502219bb74daf13c987d599e367476e0c15081.tar.xz snac2-c1502219bb74daf13c987d599e367476e0c15081.zip | |
Local tag links now point to the search by tag URL.
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 6971492..4c8eaf5 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -587,7 +587,7 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag) | |||
| 587 | /* hashtag */ | 587 | /* hashtag */ |
| 588 | xs *d = xs_dict_new(); | 588 | xs *d = xs_dict_new(); |
| 589 | xs *n = xs_tolower_i(xs_dup(v)); | 589 | xs *n = xs_tolower_i(xs_dup(v)); |
| 590 | xs *h = xs_fmt("%s%s", snac->actor, n); | 590 | xs *h = xs_fmt("%s?t=%s", srv_baseurl, n + 1); |
| 591 | xs *l = xs_fmt("<a href=\"%s\" class=\"mention hashtag\" rel=\"tag\">%s</a>", h, v); | 591 | xs *l = xs_fmt("<a href=\"%s\" class=\"mention hashtag\" rel=\"tag\">%s</a>", h, v); |
| 592 | 592 | ||
| 593 | d = xs_dict_append(d, "type", "Hashtag"); | 593 | d = xs_dict_append(d, "type", "Hashtag"); |