mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Use actor_request() again in get_actor_inbox().
This was faster, but some actors not already here (i.e. some mentions) were not posted.
This commit is contained in:
parent
5230435b31
commit
58c01be996
1 changed files with 3 additions and 1 deletions
|
@ -194,7 +194,7 @@ d_char *get_actor_inbox(snac *snac, char *actor)
|
||||||
xs *data = NULL;
|
xs *data = NULL;
|
||||||
char *v = NULL;
|
char *v = NULL;
|
||||||
|
|
||||||
if (valid_status(actor_get(snac, actor, &data))) {
|
if (valid_status(actor_request(snac, actor, &data))) {
|
||||||
/* try first endpoints/sharedInbox */
|
/* try first endpoints/sharedInbox */
|
||||||
if ((v = xs_dict_get(data, "endpoints")))
|
if ((v = xs_dict_get(data, "endpoints")))
|
||||||
v = xs_dict_get(v, "sharedInbox");
|
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 */
|
/* add the inbox if it's not already there */
|
||||||
xs_set_add(&inboxes, inbox);
|
xs_set_add(&inboxes, inbox);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
snac_log(snac, xs_fmt("cannot find inbox for %s", v));
|
||||||
}
|
}
|
||||||
|
|
||||||
return xs_set_result(&inboxes);
|
return xs_set_result(&inboxes);
|
||||||
|
|
Loading…
Reference in a new issue