diff options
| author | grunfink <grunfink@comam.es> | 2025-05-03 19:03:51 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-05-03 19:03:51 +0200 |
| commit | 7f38c744dc6ead2ccac83ae979c99ef521aad23a (patch) | |
| tree | 2e2e00dcccfc4e170967c2b46310df6cb9477329 /format.c | |
| parent | 6878e3fc939c3dac9853a3a33bfab7a289c7648b (diff) | |
Revert adding links as attachments.
Diffstat (limited to 'format.c')
| -rw-r--r-- | format.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -160,16 +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); - - /* 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); @@ -253,16 +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); - - /* 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 |