Update main.js

This commit is contained in:
PawzyTheJawzy 2025-01-09 02:06:41 +01:00
parent 6bf356e135
commit 156e2ec79e

View file

@ -56,7 +56,7 @@ async function main() {
const usersToDelete = users.filter(user => { const usersToDelete = users.filter(user => {
const createdAt = new Date(user.createdAt); const createdAt = new Date(user.createdAt);
const updatedAt = new Date(user.updatedAt); const updatedAt = new Date(user.updatedAt);
const excludedUsers = ['instance.actor', 'relay.actor'] const excludedUsers = ['instance.actor', 'relay.actor'];
return user.notesCount === 0 && return user.notesCount === 0 &&
createdAt < fiveDaysAgo && createdAt < fiveDaysAgo &&
updatedAt < fiveDaysAgo && updatedAt < fiveDaysAgo &&