commit 7b13180
default
·
2025-03-03 08:14:12 +0000 UTC
parent 9260a1e
Deleted (by now) any ways of setting a note's publish date.
2 files changed,
+2,
-3
M
main.c
M
main.c
+1,
-1
1@@ -710,7 +710,7 @@ int main(int argc, char *argv[])
2 if (strcmp(cmd, "note_unlisted") == 0)
3 scope = 2;
4
5- msg = msg_note(&snac, content, NULL, NULL, attl, scope, getenv("LANG"), getenv("DATE"));
6+ msg = msg_note(&snac, content, NULL, NULL, attl, scope, getenv("LANG"), NULL);
7
8 c_msg = msg_create(&snac, msg);
9
+1,
-2
1@@ -2628,7 +2628,6 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
2 const char *summary = xs_dict_get(args, "spoiler_text");
3 const char *media_ids = xs_dict_get(args, "media_ids");
4 const char *language = xs_dict_get(args, "language");
5- const char *sched_date = xs_dict_get(args, "scheduled_at");
6
7 if (xs_is_null(media_ids))
8 media_ids = xs_dict_get(args, "media_ids[]");
9@@ -2685,7 +2684,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
10 if (strcmp(visibility, "public") == 0)
11 scope = 0;
12
13- xs *msg = msg_note(&snac, content, NULL, irt, attach_list, scope, language, sched_date);
14+ xs *msg = msg_note(&snac, content, NULL, irt, attach_list, scope, language, NULL);
15
16 if (!xs_is_null(summary) && *summary) {
17 msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE));