diff options
author | default <nobody@localhost> | 2023-02-20 10:02:21 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-02-20 10:02:21 +0100 |
commit | 58c01be9961d87be72fcb2391ecf6ed181d993a5 (patch) | |
tree | a9cb4466595b8adc803cbb7e1731edd46af32129 | |
parent | 5230435b31ec2ca159901831c97dfa62646c993d (diff) |
Use actor_request() again in get_actor_inbox().
This was faster, but some actors not already here (i.e. some
mentions) were not posted.
-rw-r--r-- | activitypub.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 2d84b0e..dd46601 100644 --- a/activitypub.c +++ b/activitypub.c @@ -194,7 +194,7 @@ d_char *get_actor_inbox(snac *snac, char *actor) xs *data = NULL; char *v = NULL; - if (valid_status(actor_get(snac, actor, &data))) { + if (valid_status(actor_request(snac, actor, &data))) { /* try first endpoints/sharedInbox */ if ((v = xs_dict_get(data, "endpoints"))) v = xs_dict_get(v, "sharedInbox"); @@ -281,6 +281,8 @@ d_char *inbox_list(snac *snac, char *msg) /* add the inbox if it's not already there */ xs_set_add(&inboxes, inbox); } + else + snac_log(snac, xs_fmt("cannot find inbox for %s", v)); } return xs_set_result(&inboxes); |