From 5230435b31ec2ca159901831c97dfa62646c993d Mon Sep 17 00:00:00 2001 From: default Date: Mon, 20 Feb 2023 09:32:44 +0100 Subject: New boolean argument 'priv' to msg_note(). --- html.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'html.c') diff --git a/html.c b/html.c index 386354d..bfb837b 100644 --- a/html.c +++ b/html.c @@ -1392,6 +1392,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, char *edit_id = xs_dict_get(p_vars, "edit_id"); char *alt_text = xs_dict_get(p_vars, "alt_text"); xs *attach_list = xs_list_new(); + int priv = 0; /* default alt text */ if (xs_is_null(alt_text)) @@ -1436,7 +1437,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, xs *c_msg = NULL; xs *content_2 = xs_replace(content, "\r", ""); - msg = msg_note(&snac, content_2, to, in_reply_to, attach_list); + msg = msg_note(&snac, content_2, to, in_reply_to, attach_list, priv); if (sensitive != NULL) { xs *t = xs_val_new(XSTYPE_TRUE); -- cgit v1.2.3