lpp
lpp copied to clipboard
Removes legitimate files from pict-rs
After running this script, I noticed the web interface has broken images in the "trending communities" section, and the favicon was missing.
The second part of purgePictrs(pool) scans the filesystem and any files that don't match posts are deleted.
Unfortunately I found this removes
- Lemmy instance logo/thumbnail
- Community logos/thumbnails
- Embedded images in comments
- Embedded images in community/instance descriptions
- User avatars
For now, I'm adjusting the script to exit after the first part.
Interesting. I will look into this. For anyone running into this, just don't have PICTRS_FOLDER in your env, and it won't run that part.