diff options
| author | 2025-05-03 18:55:10 +0200 | |
|---|---|---|
| committer | 2025-05-03 18:55:10 +0200 | |
| commit | 6878e3fc939c3dac9853a3a33bfab7a289c7648b (patch) | |
| tree | a1e68fec08620a42a42c9a68edfdd80b4213497e /html.c | |
| parent | No longer drop text/html attachements. (diff) | |
| download | penes-snac2-6878e3fc939c3dac9853a3a33bfab7a289c7648b.tar.gz penes-snac2-6878e3fc939c3dac9853a3a33bfab7a289c7648b.tar.xz penes-snac2-6878e3fc939c3dac9853a3a33bfab7a289c7648b.zip | |
Also add direct and markdown links in posts as attachments.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -2388,7 +2388,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 2388 | const char *o_href = xs_dict_get(a, "href"); | 2388 | const char *o_href = xs_dict_get(a, "href"); |
| 2389 | const char *name = xs_dict_get(a, "name"); | 2389 | const char *name = xs_dict_get(a, "name"); |
| 2390 | 2390 | ||
| 2391 | /* if this image is already in the post content, skip */ | 2391 | /* if this URL is already in the post content, skip */ |
| 2392 | if (content && xs_str_in(content, o_href) != -1) | 2392 | if (content && xs_str_in(content, o_href) != -1) |
| 2393 | continue; | 2393 | continue; |
| 2394 | 2394 | ||