diff --git a/html.c b/html.c
index 7d59592..1b227fa 100644
--- a/html.c
+++ b/html.c
@@ -1215,10 +1215,11 @@ 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, actor, 0);
+ enqueue_output(&snac, msg, inbox, 0);
}
}
else
diff --git a/snac.h b/snac.h
index 45c099e..cfb694a 100644
--- a/snac.h
+++ b/snac.h
@@ -125,6 +125,7 @@ d_char *msg_update(snac *snac, char *object);
int activitypub_request(snac *snac, char *url, d_char **data);
int actor_request(snac *snac, char *actor, d_char **data);
int send_to_inbox(snac *snac, char *inbox, char *msg, d_char **payload, int *p_size);
+d_char *get_actor_inbox(snac *snac, char *actor);
int send_to_actor(snac *snac, char *actor, char *msg, d_char **payload, int *p_size);
int is_msg_public(snac *snac, char *msg);
void process_queue(snac *snac);