summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/html.c b/html.c
index 9d11325..ab1561b 100644
--- a/html.c
+++ b/html.c
@@ -1320,7 +1320,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
1320 1320
1321 c_msg = msg_create(&snac, msg); 1321 c_msg = msg_create(&snac, msg);
1322 1322
1323 post(&snac, c_msg); 1323 enqueue_message(&snac, c_msg);
1324 1324
1325 timeline_add(&snac, xs_dict_get(msg, "id"), msg, in_reply_to, NULL); 1325 timeline_add(&snac, xs_dict_get(msg, "id"), msg, in_reply_to, NULL);
1326 } 1326 }
@@ -1345,7 +1345,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
1345 xs *msg = msg_admiration(&snac, id, "Like"); 1345 xs *msg = msg_admiration(&snac, id, "Like");
1346 1346
1347 if (msg != NULL) { 1347 if (msg != NULL) {
1348 post(&snac, msg); 1348 enqueue_message(&snac, msg);
1349 timeline_admire(&snac, msg, id, snac.actor, 1); 1349 timeline_admire(&snac, msg, id, snac.actor, 1);
1350 } 1350 }
1351 } 1351 }
@@ -1354,7 +1354,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
1354 xs *msg = msg_admiration(&snac, id, "Announce"); 1354 xs *msg = msg_admiration(&snac, id, "Announce");
1355 1355
1356 if (msg != NULL) { 1356 if (msg != NULL) {
1357 post(&snac, msg); 1357 enqueue_message(&snac, msg);
1358 timeline_admire(&snac, msg, id, snac.actor, 0); 1358 timeline_admire(&snac, msg, id, snac.actor, 0);
1359 } 1359 }
1360 } 1360 }
@@ -1407,7 +1407,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
1407 /* it's a post by us: generate a delete */ 1407 /* it's a post by us: generate a delete */
1408 xs *msg = msg_delete(&snac, id); 1408 xs *msg = msg_delete(&snac, id);
1409 1409
1410 post(&snac, msg); 1410 enqueue_message(&snac, msg);
1411 1411
1412 /* FIXME: also post this Tombstone to people 1412 /* FIXME: also post this Tombstone to people
1413 that Announce'd it */ 1413 that Announce'd it */
@@ -1474,7 +1474,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
1474 xs *a_msg = msg_actor(&snac); 1474 xs *a_msg = msg_actor(&snac);
1475 xs *u_msg = msg_update(&snac, a_msg); 1475 xs *u_msg = msg_update(&snac, a_msg);
1476 1476
1477 post(&snac, u_msg); 1477 enqueue_message(&snac, u_msg);
1478 1478
1479 status = 303; 1479 status = 303;
1480 } 1480 }