aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-09-07 08:30:18 +0200
committergrunfink <grunfink@comam.es>2025-09-07 08:30:18 +0200
commit7796bf39f0f1fe5bea4cde5a426bee872602ca84 (patch)
treefa3377bb3b5fd6e789c711d46b657c2ebe68753b /activitypub.c
parentef701e8bb4c404343bf25cc713e660c423516345 (diff)
Always do a deferred fsck at startup.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index d699fee..5fb60ba 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -3377,6 +3377,12 @@ void process_queue_item(xs_dict *q_item)
rss_poll_hashtags();
}
else
+ if (strcmp(type, "fsck") == 0) {
+ srv_log(xs_fmt("started deferred data integrity check"));
+ data_fsck();
+ srv_log(xs_fmt("finished deferred data integrity check"));
+ }
+ else
srv_log(xs_fmt("unexpected q_item type '%s'", type));
}