summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2022-11-18 08:10:47 +0100
committerGravatar default2022-11-18 08:10:47 +0100
commite01f23cbe27d9acbe3279a78364e11bec4517aac (patch)
tree775bdfb1f837a4b3b159f33de2575535cb56198c /html.c
parentAlways log process_queue sending. (diff)
downloadsnac2-e01f23cbe27d9acbe3279a78364e11bec4517aac.tar.gz
snac2-e01f23cbe27d9acbe3279a78364e11bec4517aac.tar.xz
snac2-e01f23cbe27d9acbe3279a78364e11bec4517aac.zip
Fixed Follow bug, introduced by latest sharedInbox change.
Diffstat (limited to 'html.c')
-rw-r--r--html.c3
1 files changed, 2 insertions, 1 deletions
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,
1215 if (msg != NULL) { 1215 if (msg != NULL) {
1216 /* reload the actor from the message, in may be different */ 1216 /* reload the actor from the message, in may be different */
1217 actor = xs_dict_get(msg, "object"); 1217 actor = xs_dict_get(msg, "object");
1218 xs *inbox = get_actor_inbox(&snac, actor);
1218 1219
1219 following_add(&snac, actor, msg); 1220 following_add(&snac, actor, msg);
1220 1221
1221 enqueue_output(&snac, msg, actor, 0); 1222 enqueue_output(&snac, msg, inbox, 0);
1222 } 1223 }
1223 } 1224 }
1224 else 1225 else