New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused avatars #9142
Comments
@BaxAndrei any details? |
I noticed that when a user changes their avatar, a new one will be uploaded to the server, and the old one will still be there. I also know that the name of the avatar is a hash of it. My proposal is that, if a user changes his avatar, the system will check in the database if there is any user using the old avatar, and if it is no longer used by anyone, it will be automatically deleted. |
There's already a PR working on that by adding the user's ID as input for the hash, so there will never be a collision. |
@lunny Maybe a check for unused resources can be added to the "doctor" (avatars, attachments, LFS objects)? |
Yes, will help. |
@guillep2k good idea. |
Abbility to remove unused avatars.
The text was updated successfully, but these errors were encountered: