commit e6c48cc
default
·
2022-12-16 06:51:10 +0000 UTC
parent 25acaf1
In msg_note(), delete all cc recipients also in the to.
1 files changed,
+9,
-0
+9,
-0
1@@ -685,6 +685,15 @@ d_char *msg_note(snac *snac, char *content, char *rcpts, char *in_reply_to, char
2 if (xs_list_len(to) == 0)
3 to = xs_list_append(to, public_address);
4
5+ /* delete all cc recipients that also are in the to */
6+ p = to;
7+ while (xs_list_iter(&p, &v)) {
8+ int i;
9+
10+ if ((i = xs_list_in(cc, v)) != -1)
11+ cc = xs_list_del(cc, i);
12+ }
13+
14 msg = xs_dict_append(msg, "attributedTo", snac->actor);
15 msg = xs_dict_append(msg, "summary", "");
16 msg = xs_dict_append(msg, "content", fc1);