diff options
author | default <nobody@localhost> | 2023-02-20 09:32:44 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-02-20 09:32:44 +0100 |
commit | 5230435b31ec2ca159901831c97dfa62646c993d (patch) | |
tree | 24a831e61f4153313a124352155cd7dcf8bee56c /html.c | |
parent | 9083bef5cb5ab6d36dcba3f80ef736352ad076ac (diff) |
New boolean argument 'priv' to msg_note().
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |