summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-02-20 09:32:44 +0100
committerdefault <nobody@localhost>2023-02-20 09:32:44 +0100
commit5230435b31ec2ca159901831c97dfa62646c993d (patch)
tree24a831e61f4153313a124352155cd7dcf8bee56c /html.c
parent9083bef5cb5ab6d36dcba3f80ef736352ad076ac (diff)
New boolean argument 'priv' to msg_note().
Diffstat (limited to 'html.c')
-rw-r--r--html.c3
1 files changed, 2 insertions, 1 deletions
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);