diff options
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, | |||
| 1392 | char *edit_id = xs_dict_get(p_vars, "edit_id"); | 1392 | char *edit_id = xs_dict_get(p_vars, "edit_id"); |
| 1393 | char *alt_text = xs_dict_get(p_vars, "alt_text"); | 1393 | char *alt_text = xs_dict_get(p_vars, "alt_text"); |
| 1394 | xs *attach_list = xs_list_new(); | 1394 | xs *attach_list = xs_list_new(); |
| 1395 | int priv = 0; | ||
| 1395 | 1396 | ||
| 1396 | /* default alt text */ | 1397 | /* default alt text */ |
| 1397 | if (xs_is_null(alt_text)) | 1398 | 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, | |||
| 1436 | xs *c_msg = NULL; | 1437 | xs *c_msg = NULL; |
| 1437 | xs *content_2 = xs_replace(content, "\r", ""); | 1438 | xs *content_2 = xs_replace(content, "\r", ""); |
| 1438 | 1439 | ||
| 1439 | msg = msg_note(&snac, content_2, to, in_reply_to, attach_list); | 1440 | msg = msg_note(&snac, content_2, to, in_reply_to, attach_list, priv); |
| 1440 | 1441 | ||
| 1441 | if (sensitive != NULL) { | 1442 | if (sensitive != NULL) { |
| 1442 | xs *t = xs_val_new(XSTYPE_TRUE); | 1443 | xs *t = xs_val_new(XSTYPE_TRUE); |