mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 22:45:05 +00:00
Fixed Follow bug, introduced by latest sharedInbox change.
This commit is contained in:
parent
e6bf647b98
commit
e01f23cbe2
2 changed files with 3 additions and 1 deletions
3
html.c
3
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
|
||||
|
|
1
snac.h
1
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);
|
||||
|
|
Loading…
Reference in a new issue