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. |
|
@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: