aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2026-08-26 07:59:23 +0200
committerdefault <nobody@localhost>2026-08-26 07:59:23 +0200
commit71a83e6578f910c3baa251e4128208b201ce9e45 (patch)
tree1605da24b8574a9dfb14f65ea49a4b4c44ba95e8 /activitypub.c
parent6ae12b03d5566b9119c78d79a96df7ac12b2c636 (diff)
Use snac_op in actor_failure().
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/activitypub.c b/activitypub.c
index 92eb7f5..4de0be7 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -3054,7 +3054,7 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
followed_hashtag_distribute(a_msg);
/* actor is [back] alive */
- actor_failure(who, 2);
+ actor_failure(who, OP_DEL);
do_notify = 1;
}
@@ -3461,7 +3461,7 @@ void process_user_queue_item(snac *user, xs_dict *q_item)
const char *actor = xs_dict_get(q_item, "actor");
double mtime = object_mtime(actor);
- if (actor_failure(actor, 0) == -1) {
+ if (actor_failure(actor, OP_CHECK) == -1) {
/* actor is broken beyond repair */
snac_debug(user, 1, xs_fmt("actor_refresh skipped broken actor %s", actor));
}
@@ -3478,16 +3478,16 @@ void process_user_queue_item(snac *user, xs_dict *q_item)
actor_add(actor, actor_o);
/* mark actor and instance as working */
- actor_failure(actor, 2);
+ actor_failure(actor, OP_DEL);
instance_failure(actor, 2);
}
else {
if (status == HTTP_STATUS_GONE || status == HTTP_STATUS_NOT_FOUND) {
- actor_failure(actor, 1);
+ actor_failure(actor, OP_ADD);
snac_log(user, xs_fmt("actor_refresh marking actor %s as broken %d", actor, status));
}
else {
- actor_failure(actor, 2);
+ actor_failure(actor, OP_DEL);
object_touch(actor);
}
}