mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
If the actor from a message from the shared-inbox fails, propagate.
It may be because the actor request needs to be authenticated.
This commit is contained in:
parent
eacfa5b751
commit
2693c081b4
@ -1594,8 +1594,14 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* other actor download errors may need a retry */
|
/* other actor download errors */
|
||||||
srv_debug(1, xs_fmt("error requesting actor %s %d -- retry later", actor, a_status));
|
|
||||||
|
/* 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user