A script that goes through a lemmy images in storage and tries to prevent illegal or unethical content
GNU Affero General Public License v3.0
63
stars
6
forks
source link
Add filter possibility to enable monitoring of subfolders in the bucket #14
Closed
ruudschilders closed 3 months ago
Mastodon writes more than just media in the bucket. (Like profile backups, userlist imports etc)
Fedi-safety can crash on those.
Please add the possibility to filter on folder name , as you proposed:
In object_storage.py, replace
return s3_bucket.objects.all()
with
return s3_bucket.objects.filter(Prefix='foldername')
Or make it so we can input multiple folders.