-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Allow to tweak default scopes for accounts #20667
Conversation
25228f6
to
6e430b3
Compare
abca320
to
5da042f
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.
Good stuff 👍
Close #6582 Signed-off-by: Thomas Citharel <[email protected]>
5da042f
to
f4fe762
Compare
private $config; | ||
|
||
public const DEFAULT_SCOPE_VALUES = [ | ||
self::PROPERTY_DISPLAYNAME => self::VISIBILITY_CONTACTS_ONLY, |
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.
We should really make the default on display name and avatar public.
Talk and some other apps are completly unusable at the moment when the settings would be respected.
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.
Do you want to have the change in this PR or shall I open an issue to discuss instead?
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.
Nitpicks on naming
/** @var IConfig */ | ||
private $config; | ||
|
||
public const DEFAULT_SCOPE_VALUES = [ |
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.
public const DEFAULT_SCOPE_VALUES = [ | |
public const DEFAULT_SCOPES = [ |
@@ -52,6 +59,16 @@ interface IAccountManager { | |||
public const PROPERTY_ADDRESS = 'address'; | |||
public const PROPERTY_TWITTER = 'twitter'; | |||
|
|||
public const PROPERTIES_LIST = [ |
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.
public const PROPERTIES_LIST = [ | |
public const PROPERTIES = [ |
Btw the meaning (and labels) were changed in the meantime and they are now not about visibility but whether they are synced to trusted server and the public addressbook/lookup server. So maybe visibility is a wrong constant name nowadays |
This comment has been minimized.
This comment has been minimized.
ping @tcitworld |
Let's close this for now. We can reopen it later at any time. |
My branch though :( |
It can be restored from the github UI at any time :) |
Follow-up at #31623 |
Closes #6582, Closes #14358, Closes #14959
Lacks proper tests
Needs to be documented afterwards.