Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Mar 18, 2024

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

@Nutomic Nutomic marked this pull request as draft March 18, 2024 11:43
@Nutomic
Copy link
Member Author

Nutomic commented Mar 26, 2024

Updated, it now also deletes old site and community icons/banners when a new one is uploaded.

@Nutomic Nutomic marked this pull request as ready for review March 26, 2024 14:15
Copy link
Member

@dessalines dessalines left a 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.

crates/db_schema/src/impls/images.rs Show resolved Hide resolved
@SleeplessOne1917 SleeplessOne1917 deleted the branch list_images March 26, 2024 22:30
@dessalines
Copy link
Member

This maybe was wrongly closed cause that branch got merged and deleted. @Nutomic you might need to re-open this up, but pointing at main

@SleeplessOne1917
Copy link
Member

Shit, This was not what I meant to close.

@Nutomic
Copy link
Member Author

Nutomic commented Mar 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants