diff options
| author | 2025-03-02 06:04:52 +0100 | |
|---|---|---|
| committer | 2025-03-02 06:04:52 +0100 | |
| commit | 8bd364bd49116b8b335272300ca05f25e1267df7 (patch) | |
| tree | 662125524613d1d1309edc990fe143b19e510a49 /html.c | |
| parent | Updated documentation. (diff) | |
| download | snac2-8bd364bd49116b8b335272300ca05f25e1267df7.tar.gz snac2-8bd364bd49116b8b335272300ca05f25e1267df7.tar.xz snac2-8bd364bd49116b8b335272300ca05f25e1267df7.zip | |
msg_note() accepts a nullable post date.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -4020,7 +4020,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 4020 | const char *b64 = xs_dict_get(q_vars, "content"); | 4020 | const char *b64 = xs_dict_get(q_vars, "content"); |
| 4021 | int sz; | 4021 | int sz; |
| 4022 | xs *content = xs_base64_dec(b64, &sz); | 4022 | xs *content = xs_base64_dec(b64, &sz); |
| 4023 | xs *msg = msg_note(&snac, content, NULL, NULL, NULL, 0, NULL); | 4023 | xs *msg = msg_note(&snac, content, NULL, NULL, NULL, 0, NULL, NULL); |
| 4024 | xs *c_msg = msg_create(&snac, msg); | 4024 | xs *c_msg = msg_create(&snac, msg); |
| 4025 | 4025 | ||
| 4026 | timeline_add(&snac, xs_dict_get(msg, "id"), msg); | 4026 | timeline_add(&snac, xs_dict_get(msg, "id"), msg); |
| @@ -4220,7 +4220,7 @@ int html_post_handler(const xs_dict *req, const char *q_path, | |||
| 4220 | enqueue_close_question(&snac, xs_dict_get(msg, "id"), end_secs); | 4220 | enqueue_close_question(&snac, xs_dict_get(msg, "id"), end_secs); |
| 4221 | } | 4221 | } |
| 4222 | else | 4222 | else |
| 4223 | msg = msg_note(&snac, content_2, to, in_reply_to, attach_list, priv, NULL); | 4223 | msg = msg_note(&snac, content_2, to, in_reply_to, attach_list, priv, NULL, NULL); |
| 4224 | 4224 | ||
| 4225 | if (sensitive != NULL) { | 4225 | if (sensitive != NULL) { |
| 4226 | msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE)); | 4226 | msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE)); |
| @@ -4659,7 +4659,7 @@ int html_post_handler(const xs_dict *req, const char *q_path, | |||
| 4659 | int c = 0; | 4659 | int c = 0; |
| 4660 | 4660 | ||
| 4661 | while (xs_list_next(ls, &v, &c)) { | 4661 | while (xs_list_next(ls, &v, &c)) { |
| 4662 | xs *msg = msg_note(&snac, "", actor, irt, NULL, 1, NULL); | 4662 | xs *msg = msg_note(&snac, "", actor, irt, NULL, 1, NULL, NULL); |
| 4663 | 4663 | ||
| 4664 | /* set the option */ | 4664 | /* set the option */ |
| 4665 | msg = xs_dict_append(msg, "name", v); | 4665 | msg = xs_dict_append(msg, "name", v); |