aboutsummaryrefslogtreecommitdiff
path: root/data.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 /data.c
parentef701e8bb4c404343bf25cc713e660c423516345 (diff)
Always do a deferred fsck at startup.
Diffstat (limited to 'data.c')
-rw-r--r--data.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/data.c b/data.c
index 8f2c3cb..1533305 100644
--- a/data.c
+++ b/data.c
@@ -3605,6 +3605,17 @@ void enqueue_collect_outbox(snac *user, const char *actor_id)
}
+void enqueue_fsck(void)
+/* enqueues an fsck */
+{
+ xs *qmsg = _new_qmsg("fsck", "", 0);
+ const char *ntid = xs_dict_get(qmsg, "ntid");
+ xs *fn = xs_fmt("%s/queue/%s.json", srv_basedir, ntid);
+
+ qmsg = _enqueue_put(fn, qmsg);
+}
+
+
int was_question_voted(snac *user, const char *id)
/* returns true if the user voted in this poll */
{