summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-29 09:11:43 +0200
committerdefault <nobody@localhost>2022-09-29 09:11:43 +0200
commit49bca7e273640c65f9aa41309805ff3f7425123d (patch)
tree1e6e9c0b1cb5408c5eded094d4643c5274f7da09 /activitypub.c
parentc5a7a9c4751c339c6abb15f64c5c5b0cc28e2d62 (diff)
html_entry() is built in its own string and then added.
This will be faster.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c
index 51ae6fa..cebefca 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -577,13 +577,17 @@ int process_message(snac *snac, char *msg, char *req)
/* bring the actor */
a_status = actor_request(snac, actor, &actor_o);
- /* if it's a 410 Gone, it's a Delete crap that can be ignored */
- if (a_status == 410) {
+ /* if the actor does not explicitly exist, discard */
+ if (a_status == 404 || a_status == 410) {
+ snac_debug(snac, 1,
+ xs_fmt("dropping message due to actor error %s %d", actor, a_status));
+
return 1;
}
if (!valid_status(a_status)) {
- snac_log(snac,
+ /* other actor download errors may need a retry */
+ snac_debug(snac, 1,
xs_fmt("error requesting actor %s %d -- retry later", actor, a_status));
return 0;