diff options
| author | grunfink <grunfink@comam.es> | 2025-05-09 15:31:58 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-05-09 15:31:58 +0200 |
| commit | c166e05f7d3ba1efe9b16290bf3da2b06fdae8ea (patch) | |
| tree | aba94462b73a15e41d7a7f651f41e379f194e1a7 /format.c | |
| parent | 33647d2cb75077b7152a9727659b452a7727d42b (diff) | |
As they look ugly in some platforms, links are no longer shown as attachments.
Diffstat (limited to 'format.c')
| -rw-r--r-- | format.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -160,18 +160,6 @@ static xs_str *format_line(const char *line, xs_list **attach) xs *link = xs_fmt("<a href=\"%s\">%s</a>", url, name); s = xs_str_cat(s, link); - - if (attach) { - /* also add the link as an attachment */ - xs *d = xs_dict_new(); - - d = xs_dict_append(d, "mediaType", "text/html"); - d = xs_dict_append(d, "url", url); - d = xs_dict_append(d, "name", name); - d = xs_dict_append(d, "type", "Link"); - - *attach = xs_list_append(*attach, d); - } } else s = xs_str_cat(s, v); @@ -255,18 +243,6 @@ static xs_str *format_line(const char *line, xs_list **attach) else { xs *s1 = xs_fmt("<a href=\"%s\" target=\"_blank\">%s</a>", v2, u); s = xs_str_cat(s, s1); - - if (attach) { - /* also add the link as an attachment */ - xs *d = xs_dict_new(); - - d = xs_dict_append(d, "mediaType", "text/html"); - d = xs_dict_append(d, "url", v2); - d = xs_dict_append(d, "name", ""); - d = xs_dict_append(d, "type", "Link"); - - *attach = xs_list_append(*attach, d); - } } } else |