Automatic status deletion script for Mastodon and Pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Thor 9e4b9ba92a Merge branch 'master' of git.thj.no:thor/fedidel 3 years ago
secret Initial commit 3 years ago
state Initial commit 3 years ago
.gitignore Updated .gitignore 3 years ago
README.md Fleshed out README.md a bit 3 years ago
config.example.json Retained statuses; per-minute expiry times 3 years ago
fedidel.py Change conditions for delete 3 years ago
fedidel.service Change default username in fedidel.service 3 years ago

README.md

fedidel

fedidel is a bot that tracks and auto-deletes on Mastodon/Pleroma accounts according to a set maximum age. Tracking multiple instances simultaneously is possible. It will permanently retain statuses favourited by the account that posted them. Reblogs are treated as favourites and are permanently retained. Once a status is flagged for retention, the bot will not check it again.

Installation (Linux)

Obtain root login shell

sudo -i

Download fedidel and make user account

git clone https://git.thj.no/thor/fedidel.git /usr/local/lib/fedidel
useradd -d /usr/local/lib/fedidel -M -s /bin/bash -U fedidel
chown -R fedidel.fedidel /usr/local/lib/fedidel

Create configuration

cd /usr/local/lib/fedidel
cp config.example.json config.json
editor config.json

Install systemd service

ln -s fedidel.service /etc/systemd/system/fedidel.service
systemctl enable fedidel
systemctl start fedidel

Management

# Restart service
systemctl restart fedidel

# Check service status
systemctl status fedidel

# Monitor log output
journalctl -t fedidel -f

Maintainer

The maintainer can be contacted at @thor@pl.thj.no.