I just did a thing. I added new command to mastodon's tootctl to remove old avatar images and header graphics. There's an "undo" command as well if you run into problems.

Just tried it on my instance and it did remove some files indeed.

#fediadmin #tootctl #mastodon

Follow

@dunkelstern Soll das nicht als ein Teil von `remove-ophans` eingabeut werden?

@robryk es sind ja in dem sinne keine orphans. Orphans sind im Fall von tootctl ja die Files die einfach so auf der Platte liegen und nicht mehr verlinkt sind. Das hier löscht die avatar und header bilder aus dem cache für accounts die auf der lokalen instanz weder gefollowed werden noch anderen leuten folgen und älter sind als X tage.

Mastodon sollte die Daten dann wieder nachladen wenn die nochmal auftauchen, aber es kann halt dazu führen dass man erstmal nen platzhalter-mastodon avatar sieht

@dunkelstern Scheint es nicht in diesem Fall wie ein Teil von `remove`? Das löscht die Bilder, die mit alte Toote von fremde Instanzen verbunden sind.

@robryk kann man so sehen, bisher war es noch gar nicht eingebaut, deshalb war ich mal vorsichtig und hab es als extra command drin. Es gibt auch das reverse: alle avatare runterladen um den ersten command rückgängig zu machen, das gibt's mit dem refresh command auch, aber da muss man speziell einen user oder post angeben, mein command geht auf alle fehlenden bilder los.

Am Ende ist das eh nicht meine Entscheidung wo es rein kommt. So kann man es einfach testen und im Zweifel bau ich es um.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.