diff options
author | default <nobody@localhost> | 2022-09-27 14:50:13 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-27 14:50:13 +0200 |
commit | 6144e0eeeb4f28cfa5f03bf2a583aa58af7d90d0 (patch) | |
tree | defcf613a182537a273b568de2b378f1debe3082 /main.c | |
parent | 0b6540f503006aa3b4d004afbd9bbeeb35200b8a (diff) |
More work in msg_note().
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -168,6 +168,7 @@ int main(int argc, char *argv[]) xs *content = NULL; xs *msg = NULL; xs *c_msg = NULL; + char *in_reply_to = GET_ARGV(); if (strcmp(url, "-") == 0) { /* get the content from an editor */ @@ -189,7 +190,7 @@ int main(int argc, char *argv[]) else content = xs_dup(url); - msg = msg_note(&snac, content, NULL, NULL); + msg = msg_note(&snac, content, NULL, in_reply_to); c_msg = msg_create(&snac, msg); @@ -200,6 +201,8 @@ int main(int argc, char *argv[]) post(&snac, c_msg); + timeline_add(&snac, xs_dict_get(msg, "id"), msg, in_reply_to, NULL); + return 0; } |