Skip to content

Releases: wereii/lemmy-thumbnail-cleaner

v0.1.3 - Delete oldest thumbnails first

25 Jun 12:54
c2f28a4
Compare
Choose a tag to compare

This is a "minor" release compared to the others (eh), the only change to the function of LTC is that now it will start with the oldest thumbnails first (up to the specified month interval age).

The rest of the changes/commits are just upkeep and maintenance.

v0.1.2 Fix deletion of every thumbnail (sorry)

24 Jun 23:09
db2afd5
Compare
Choose a tag to compare

Thanks to @Nothing4You a really bad mistake has been fixed.

A wrong sign in the calculation of the time interval in the postgres query basically caused that the cleaner has been deleting everything up to the query limit ignoring the month age.

I am really sorry about this oversight.
As far as I know, lemmy regenerates missing thumbnails if a post is accessed again so I am hoping no great damage has been done by this.
Thumbnails are generated when the post is fetched or created.

I have pulled the v0.1.1 docker image, please update to v0.1.2 as soon as possible.

v0.1.1 Hotfix!

22 Mar 23:48
bee2a5d
Compare
Choose a tag to compare

We have found out that the cleaner can't be run against pict-rs versions older then 0.5 as it does not have the required API endpoints.

In addition, the returned 404 error was handled in a way that would cause the thumbnails to be unlinked from their posts but not actually deleted in pict-rs, leaving them orphaned. Not good!

The behavior has been changed so that by default 404 is simply considered as failure and the thumbnail is kept as is.
There is now also extra environment variable DELETE_ON_NOT_FOUND, which does the opposite and will happily drop the thumbnail even on 404, use with care! See README for more information.

The version 0.1.0 has been pulled from the repository, please update to tag v0.1.1.