feat: logic for remote user deletion, cronjob, and ACP options for pruning options

re: #12611
This commit is contained in:
Julian Lam
2024-06-07 16:27:44 -04:00
parent 8d790964be
commit 4bb2c1a85e
6 changed files with 87 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ ActivityPub.actors = require('./actors');
ActivityPub.startJobs = () => {
// winston.verbose('[activitypub/jobs] Registering jobs.');
new CronJob('0 0 * * *', ActivityPub.notes.prune, null, true, null, null, false); // change last argument to true for debugging
new CronJob('0 1 * * *', ActivityPub.actors.prune, null, true, null, null, false); // change last argument to true for debugging
};
ActivityPub.resolveId = async (uid, id) => {