commit 58c01be

default  ·  2023-02-20 09:02:21 +0000 UTC
parent 5230435
Use actor_request() again in get_actor_inbox().

This was faster, but some actors not already here (i.e. some
mentions) were not posted.
1 files changed,  +3, -1
+3, -1
 1@@ -194,7 +194,7 @@ d_char *get_actor_inbox(snac *snac, char *actor)
 2     xs *data = NULL;
 3     char *v = NULL;
 4 
 5-    if (valid_status(actor_get(snac, actor, &data))) {
 6+    if (valid_status(actor_request(snac, actor, &data))) {
 7         /* try first endpoints/sharedInbox */
 8         if ((v = xs_dict_get(data, "endpoints")))
 9             v = xs_dict_get(v, "sharedInbox");
10@@ -281,6 +281,8 @@ d_char *inbox_list(snac *snac, char *msg)
11             /* add the inbox if it's not already there */
12             xs_set_add(&inboxes, inbox);
13         }
14+        else
15+            snac_log(snac, xs_fmt("cannot find inbox for %s", v));
16     }
17 
18     return xs_set_result(&inboxes);