-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Honor avatar visibility settings #17715
Conversation
Fixes #5456 Only when an avatar is set to public should we show it to the public. For now this has an open question as to how to solve federated avatars. But I assume a dedicated paramter or endpooint would make sense there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
For federated avatars we need a new endpoint anyways to verify their token etc. Lets leave that till later. |
To test. Set your avatar level in the personal settings. |
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.
Works!
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.
Code looks good!
@nickvergessen you first wanted to test something right? |
The |
I have no clue what that means Joas! |
We should fix it. I'd leave it for now. And see if we can come up with and endpoint to request remote avatars where you send your share token for example. |
Okay, then lets merge |
Damn, I saw this too late. Can we adjust this to show the generic colored round avatar with first char in it? |
@tobiasKaminsky no it won't. As long as you send your credentials you should get back the image. |
Clients also use https:///nextcloud/index.php/avatar/USER/ this to get avatars from other users (on the same instance [currently no federation]) when we do a search, or show it in file list if file was shared by an user. |
yes I know. But read the code. If the avatar is not public. And you do an anonymous request we return the 404. |
True, stupid from me, I read only have of the code :-( |
Fixes #5456
Only when an avatar is set to public should we show it to the public.
For now this has an open question as to how to solve federated avatars.
But I assume a dedicated paramter or endpooint would make sense there.
Todo: