-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Delete Avatar Problem #8176
Comments
The filename is a hash of the avatar contents. For this, I think we should add the owner as part of the hash and force the names to be different. Otherwise, we'll have to keep a reference count for every file. |
IMHO First one does not affect? If a user add same image to multiple organization then remove one |
If your NASA organization adds
The name is calculated by hashing its content. If ESA adds the same picture of a planet (no matter the file name, only the byte-by-byte content of the file), then it will be named again:
That's why if ESA deletes its file, NASA's file gets deleted too. However, if we apply other metadata to the hash input, the hash will be different each case, for example:
Even if they are the same file. That should solve the problem, because if ESA deletes or changes its avatar, only |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
There is a problem something like this, reproduce:
Then you will see other organization's avatar reset to default gitea avatar, becouse image removed from disk.
This is same:
My opinions for solution:
The text was updated successfully, but these errors were encountered: