diff options
| -rw-r--r-- | RELEASE_NOTES.md | 2 | ||||
| -rw-r--r-- | TODO.md | 2 | ||||
| -rw-r--r-- | format.c | 5 |
3 files changed, 7 insertions, 2 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 9598403..6f76a9f 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | ## 2.35 | 3 | ## 2.35 |
| 4 | 4 | ||
| 5 | Fixed URL links with the # symbol on them. | ||
| 6 | |||
| 5 | There is new a user configuration setup checkbox to mark an account as a bot. | 7 | There is new a user configuration setup checkbox to mark an account as a bot. |
| 6 | 8 | ||
| 7 | Mastodon API: several bug fixes (contributed by Poesty). | 9 | Mastodon API: several bug fixes (contributed by Poesty). |
| @@ -249,3 +249,5 @@ Mastodon API: implement 'unreblog' (unboost) (2023-05-19T21:25:24+0200). | |||
| 249 | Do something with @mentions without host; complete with followed people, or with local users. Or just do nothing. I'm not sure (2023-05-21T20:19:15+0200). | 249 | Do something with @mentions without host; complete with followed people, or with local users. Or just do nothing. I'm not sure (2023-05-21T20:19:15+0200). |
| 250 | 250 | ||
| 251 | Add (back) the possibility to attach an image by URL (2023-05-21T20:35:39+0200). | 251 | Add (back) the possibility to attach an image by URL (2023-05-21T20:35:39+0200). |
| 252 | |||
| 253 | Fix broken links that contain # (https://codeberg.org/grunfink/snac2/issues/47#issuecomment-937014) (2023-06-12T19:03:45+0200). | ||
| @@ -73,7 +73,8 @@ static xs_str *format_line(const char *line, xs_list **attach) | |||
| 73 | } | 73 | } |
| 74 | else | 74 | else |
| 75 | if (xs_startswith(v, "http")) { | 75 | if (xs_startswith(v, "http")) { |
| 76 | xs *v2 = xs_strip_chars_i(xs_dup(v), "."); | 76 | xs *u = xs_replace(v, "#", "#"); |
| 77 | xs *v2 = xs_strip_chars_i(xs_dup(u), "."); | ||
| 77 | 78 | ||
| 78 | const char *mime = xs_mime_by_ext(v2); | 79 | const char *mime = xs_mime_by_ext(v2); |
| 79 | 80 | ||
| @@ -89,7 +90,7 @@ static xs_str *format_line(const char *line, xs_list **attach) | |||
| 89 | *attach = xs_list_append(*attach, d); | 90 | *attach = xs_list_append(*attach, d); |
| 90 | } | 91 | } |
| 91 | else { | 92 | else { |
| 92 | xs *s1 = xs_fmt("<a href=\"%s\" target=\"_blank\">%s</a>", v2, v); | 93 | xs *s1 = xs_fmt("<a href=\"%s\" target=\"_blank\">%s</a>", v2, u); |
| 93 | s = xs_str_cat(s, s1); | 94 | s = xs_str_cat(s, s1); |
| 94 | } | 95 | } |
| 95 | } | 96 | } |