From 7f38c744dc6ead2ccac83ae979c99ef521aad23a Mon Sep 17 00:00:00 2001
From: grunfink
Date: Sat, 3 May 2025 19:03:51 +0200
Subject: Revert adding links as attachments.
---
format.c | 20 --------------------
1 file changed, 20 deletions(-)
(limited to 'format.c')
diff --git a/format.c b/format.c
index 525edb0..f5c66da 100644
--- a/format.c
+++ b/format.c
@@ -160,16 +160,6 @@ static xs_str *format_line(const char *line, xs_list **attach)
xs *link = xs_fmt("%s", 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("%s", 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
--
cgit v1.2.3