9 Commits

Author SHA1 Message Date
Tealk
6ffa2734a1
fix delete url 2025-06-06 15:26:16 +02:00
ij
daf3cdff94 Minor changes and corrections
Rewording of "deactivated" instead of "disabled", replacement of $profileurl and some changes to the stats output. Additionally some hints in the mail texts about notifiying by mail.

Signed-off-by: ij <ij@noreply.codeberg.org>
2023-12-13 20:05:13 +00:00
ij
c3bd7d2d5f Some more changes, added subroutine to create config 2023-11-18 21:18:16 +01:00
ij
246212c8e1 Added configuration file and other changes 2023-11-16 23:15:45 +01:00
Tealk
b5f438e09d
add some improvements
Signed-off-by: Tealk <tealk@anzah.email>
2023-10-25 15:46:46 +02:00
ij
179885ec00 small improvements 2023-08-20 17:11:49 +00:00
ij
c8d5427e16 added cron option and deactivation
Instead of deleting right away after the limit has been reached, the users will now be deactivated. The new "--cron" option can now be invoked more often (like hourly, daily, whatever) to delete the deactivated users. You can define how many accounts get deleted in each cron run. Default is 2 users. 
Reason for this is to prevent too much load on the server when hundreds or even thousands of users get deleted. 

Also there is some statistics at the end when the script runs.
2023-08-17 19:25:27 +00:00
ij
a4931ba4f1 fix typo 2022-11-17 20:41:16 +01:00
ingoj
dbe001ec88 Create cleanup-mastodon-users.sh
Initial commit
2021-08-05 10:14:46 +02:00