summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar default2022-12-16 07:16:00 +0100
committerGravatar default2022-12-16 07:16:00 +0100
commit25acaf178cc8a4112a5a150f5ee45bf69192cc0e (patch)
tree84267c8d738e10a755d66e6c046fb5cc3ccbf99e /main.c
parentNew function enqueue_message(). (diff)
downloadsnac2-25acaf178cc8a4112a5a150f5ee45bf69192cc0e.tar.gz
snac2-25acaf178cc8a4112a5a150f5ee45bf69192cc0e.tar.xz
snac2-25acaf178cc8a4112a5a150f5ee45bf69192cc0e.zip
Replaced all calls to post() with enqueue_message().
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index d3a461e..83c416a 100644
--- a/main.c
+++ b/main.c
@@ -175,7 +175,7 @@ int main(int argc, char *argv[])
175 xs *msg = msg_admiration(&snac, url, "Announce"); 175 xs *msg = msg_admiration(&snac, url, "Announce");
176 176
177 if (msg != NULL) { 177 if (msg != NULL) {
178 post(&snac, msg); 178 enqueue_message(&snac, msg);
179 179
180 if (dbglevel) { 180 if (dbglevel) {
181 xs *j = xs_json_dumps_pp(msg, 4); 181 xs *j = xs_json_dumps_pp(msg, 4);
@@ -290,7 +290,7 @@ int main(int argc, char *argv[])
290 printf("%s\n", j); 290 printf("%s\n", j);
291 } 291 }
292 292
293 post(&snac, c_msg); 293 enqueue_message(&snac, c_msg);
294 294
295 timeline_add(&snac, xs_dict_get(msg, "id"), msg, in_reply_to, NULL); 295 timeline_add(&snac, xs_dict_get(msg, "id"), msg, in_reply_to, NULL);
296 296