aboutsummaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-03-03 09:14:12 +0100
committerdefault <nobody@localhost>2025-03-03 09:14:12 +0100
commit7b131808d90261ccafa489ca597b3b5640fa99d9 (patch)
tree8362cd19de019de1d52920df12dcde35fb6d4280 /mastoapi.c
parent9260a1e328cd3922c85c0794559e7a032c2e6d25 (diff)
Deleted (by now) any ways of setting a note's publish date.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 25b17e2..1927b0a 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -2628,7 +2628,6 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
const char *summary = xs_dict_get(args, "spoiler_text");
const char *media_ids = xs_dict_get(args, "media_ids");
const char *language = xs_dict_get(args, "language");
- const char *sched_date = xs_dict_get(args, "scheduled_at");
if (xs_is_null(media_ids))
media_ids = xs_dict_get(args, "media_ids[]");
@@ -2685,7 +2684,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
if (strcmp(visibility, "public") == 0)
scope = 0;
- xs *msg = msg_note(&snac, content, NULL, irt, attach_list, scope, language, sched_date);
+ xs *msg = msg_note(&snac, content, NULL, irt, attach_list, scope, language, NULL);
if (!xs_is_null(summary) && *summary) {
msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE));