diff options
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -2628,7 +2628,6 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, | |||
| 2628 | const char *summary = xs_dict_get(args, "spoiler_text"); | 2628 | const char *summary = xs_dict_get(args, "spoiler_text"); |
| 2629 | const char *media_ids = xs_dict_get(args, "media_ids"); | 2629 | const char *media_ids = xs_dict_get(args, "media_ids"); |
| 2630 | const char *language = xs_dict_get(args, "language"); | 2630 | const char *language = xs_dict_get(args, "language"); |
| 2631 | const char *sched_date = xs_dict_get(args, "scheduled_at"); | ||
| 2632 | 2631 | ||
| 2633 | if (xs_is_null(media_ids)) | 2632 | if (xs_is_null(media_ids)) |
| 2634 | media_ids = xs_dict_get(args, "media_ids[]"); | 2633 | media_ids = xs_dict_get(args, "media_ids[]"); |
| @@ -2685,7 +2684,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, | |||
| 2685 | if (strcmp(visibility, "public") == 0) | 2684 | if (strcmp(visibility, "public") == 0) |
| 2686 | scope = 0; | 2685 | scope = 0; |
| 2687 | 2686 | ||
| 2688 | xs *msg = msg_note(&snac, content, NULL, irt, attach_list, scope, language, sched_date); | 2687 | xs *msg = msg_note(&snac, content, NULL, irt, attach_list, scope, language, NULL); |
| 2689 | 2688 | ||
| 2690 | if (!xs_is_null(summary) && *summary) { | 2689 | if (!xs_is_null(summary) && *summary) { |
| 2691 | msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE)); | 2690 | msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE)); |