commit 2693c081b4614dbf3b89f078df7a3786bc3a908a
parent eacfa5b7518ccbf7d88db0f2623d526b17e28e6f
Author: default <nobody@localhost>
Date: Thu, 11 Jan 2024 06:34:29 +0100
If the actor from a message from the shared-inbox fails, propagate.
It may be because the actor request needs to be authenticated.
Diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/activitypub.c b/activitypub.c
@@ -1594,8 +1594,14 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
return -1;
}
- /* other actor download errors may need a retry */
- srv_debug(1, xs_fmt("error requesting actor %s %d -- retry later", actor, a_status));
+ /* other actor download errors */
+
+ /* the actor may require a signed request; propagate if no user is set */
+ if (snac == NULL)
+ return 2;
+
+ /* may need a retry */
+ srv_debug(0, xs_fmt("error requesting actor %s %d -- retry later", actor, a_status));
return 0;
}