diff options
| author | 2025-07-24 09:48:50 +0200 | |
|---|---|---|
| committer | 2025-07-24 09:48:50 +0200 | |
| commit | 620571b43726e1bec63b7ea7a42d01fb09a9d613 (patch) | |
| tree | 61f64b72888b497ccd805721d4c8b5b29f825ee4 | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-620571b43726e1bec63b7ea7a42d01fb09a9d613.tar.gz snac2-620571b43726e1bec63b7ea7a42d01fb09a9d613.tar.xz snac2-620571b43726e1bec63b7ea7a42d01fb09a9d613.zip | |
Fixed link in tags, when it's an RSS.
Diffstat (limited to '')
| -rw-r--r-- | html.c | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -3002,7 +3002,13 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, | |||
| 3002 | const char *ht; | 3002 | const char *ht; |
| 3003 | 3003 | ||
| 3004 | xs_list_foreach(followed_hashtags, ht) { | 3004 | xs_list_foreach(followed_hashtags, ht) { |
| 3005 | xs *url = xs_fmt("%s/admin?q=%s", user->actor, ht); | 3005 | xs *url = NULL; |
| 3006 | |||
| 3007 | if (!xs_startswith(ht, "https:/""/")) | ||
| 3008 | url = xs_fmt("%s/admin?q=%s", user->actor, ht); | ||
| 3009 | else | ||
| 3010 | url = xs_dup(ht); | ||
| 3011 | |||
| 3006 | url = xs_replace_i(url, "#", "%23"); | 3012 | url = xs_replace_i(url, "#", "%23"); |
| 3007 | 3013 | ||
| 3008 | xs_html_add(loht, | 3014 | xs_html_add(loht, |