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
When uploading new avatar/banner, delete old one #4548
Conversation
Updated, it now also deletes old site and community icons/banners when a new one is uploaded. |
caaee7e
to
8414b58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, feel free to merge after fixing that clippy issue.
This maybe was wrongly closed cause that branch got merged and deleted. @Nutomic you might need to re-open this up, but pointing at |
Shit, This was not what I meant to close. |
No worries it was only deleted because the delete_images branch was deleted. I have no clue why the PR pointed at that and not main. |
We currently keep old avatars, banners etc around forever. It makes sense to delete them when a new one is uploaded. For now I implemented it only for user avatar change, but will do the same for user banner, community icon etc if it looks good.
Depends on #4509