diff options
| author | 2022-09-27 14:50:13 +0200 | |
|---|---|---|
| committer | 2022-09-27 14:50:13 +0200 | |
| commit | 6144e0eeeb4f28cfa5f03bf2a583aa58af7d90d0 (patch) | |
| tree | defcf613a182537a273b568de2b378f1debe3082 /main.c | |
| parent | Notes can be posted WOW!. (diff) | |
| download | snac2-6144e0eeeb4f28cfa5f03bf2a583aa58af7d90d0.tar.gz snac2-6144e0eeeb4f28cfa5f03bf2a583aa58af7d90d0.tar.xz snac2-6144e0eeeb4f28cfa5f03bf2a583aa58af7d90d0.zip | |
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[]) | |||
| 168 | xs *content = NULL; | 168 | xs *content = NULL; |
| 169 | xs *msg = NULL; | 169 | xs *msg = NULL; |
| 170 | xs *c_msg = NULL; | 170 | xs *c_msg = NULL; |
| 171 | char *in_reply_to = GET_ARGV(); | ||
| 171 | 172 | ||
| 172 | if (strcmp(url, "-") == 0) { | 173 | if (strcmp(url, "-") == 0) { |
| 173 | /* get the content from an editor */ | 174 | /* get the content from an editor */ |
| @@ -189,7 +190,7 @@ int main(int argc, char *argv[]) | |||
| 189 | else | 190 | else |
| 190 | content = xs_dup(url); | 191 | content = xs_dup(url); |
| 191 | 192 | ||
| 192 | msg = msg_note(&snac, content, NULL, NULL); | 193 | msg = msg_note(&snac, content, NULL, in_reply_to); |
| 193 | 194 | ||
| 194 | c_msg = msg_create(&snac, msg); | 195 | c_msg = msg_create(&snac, msg); |
| 195 | 196 | ||
| @@ -200,6 +201,8 @@ int main(int argc, char *argv[]) | |||
| 200 | 201 | ||
| 201 | post(&snac, c_msg); | 202 | post(&snac, c_msg); |
| 202 | 203 | ||
| 204 | timeline_add(&snac, xs_dict_get(msg, "id"), msg, in_reply_to, NULL); | ||
| 205 | |||
| 203 | return 0; | 206 | return 0; |
| 204 | } | 207 | } |
| 205 | 208 | ||