From 654326aa8bb1cae5105ffca2f227b71e5981290a Mon Sep 17 00:00:00 2001 From: default Date: Fri, 18 Nov 2022 08:21:40 +0100 Subject: New function enqueue_output_to_actor(). --- html.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index 1b227fa..b48eae4 100644 --- a/html.c +++ b/html.c @@ -1215,11 +1215,10 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, if (msg != NULL) { /* reload the actor from the message, in may be different */ actor = xs_dict_get(msg, "object"); - xs *inbox = get_actor_inbox(&snac, actor); following_add(&snac, actor, msg); - enqueue_output(&snac, msg, inbox, 0); + enqueue_output_by_actor(&snac, msg, actor, 0); } } else @@ -1232,7 +1231,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, following_del(&snac, actor); - enqueue_output(&snac, msg, actor, 0); + enqueue_output_by_actor(&snac, msg, actor, 0); snac_log(&snac, xs_fmt("unfollowed actor %s", actor)); } -- cgit v1.2.3