summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2024-01-11 06:34:29 +0100
committerGravatar default2024-01-11 06:34:29 +0100
commit2693c081b4614dbf3b89f078df7a3786bc3a908a (patch)
tree12769b25873da474a26c81876935c4b068f30f75
parentAvoid a webfinger request in msg_note(). (diff)
downloadsnac2-2693c081b4614dbf3b89f078df7a3786bc3a908a.tar.gz
snac2-2693c081b4614dbf3b89f078df7a3786bc3a908a.tar.xz
snac2-2693c081b4614dbf3b89f078df7a3786bc3a908a.zip
If the actor from a message from the shared-inbox fails, propagate.
It may be because the actor request needs to be authenticated.
-rw-r--r--activitypub.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 8383f9b..c3013d8 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1594,8 +1594,14 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
1594 return -1; 1594 return -1;
1595 } 1595 }
1596 1596
1597 /* other actor download errors may need a retry */ 1597 /* other actor download errors */
1598 srv_debug(1, xs_fmt("error requesting actor %s %d -- retry later", actor, a_status)); 1598
1599 /* the actor may require a signed request; propagate if no user is set */
1600 if (snac == NULL)
1601 return 2;
1602
1603 /* may need a retry */
1604 srv_debug(0, xs_fmt("error requesting actor %s %d -- retry later", actor, a_status));
1599 return 0; 1605 return 0;
1600 } 1606 }
1601 1607