Browse Source

Deleted (by now) any ways of setting a note's publish date.

default 3 weeks ago
parent
commit
7b131808d9
2 changed files with 2 additions and 3 deletions
  1. 1 1
      main.c
  2. 1 2
      mastoapi.c

+ 1 - 1
main.c

@@ -710,7 +710,7 @@ int main(int argc, char *argv[])
         if (strcmp(cmd, "note_unlisted") == 0)
             scope = 2;
 
-        msg = msg_note(&snac, content, NULL, NULL, attl, scope, getenv("LANG"), getenv("DATE"));
+        msg = msg_note(&snac, content, NULL, NULL, attl, scope, getenv("LANG"), NULL);
 
         c_msg = msg_create(&snac, msg);
 

+ 1 - 2
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));