mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
Merge "Use ConditionalUserOptions for "echo-subscriptions-email-dt-subscription""
This commit is contained in:
commit
7c9450489d
|
@ -531,6 +531,14 @@
|
|||
"discussiontools-autotopicsub": 1,
|
||||
"discussiontools-visualenhancements": 1
|
||||
},
|
||||
"ConditionalUserOptions": {
|
||||
"echo-subscriptions-email-dt-subscription": [
|
||||
[
|
||||
true,
|
||||
[ "registered-after", "20240617000000" ]
|
||||
]
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
"DiscussionToolsBeta": {
|
||||
"value": false,
|
||||
|
|
|
@ -221,8 +221,6 @@ class PreferenceHooks implements
|
|||
}
|
||||
|
||||
$userOptionsManager = MediaWikiServices::getInstance()->getUserOptionsManager();
|
||||
// We want new users to be created with email-subscriptions to our notifications enabled
|
||||
$userOptionsManager->setOption( $user, 'echo-subscriptions-email-dt-subscription', true );
|
||||
// The auto topic subscription feature is disabled by default for existing users, but
|
||||
// we enable it for new users (T294398).
|
||||
// This can only occur when the feature is available for everyone; when it's in beta,
|
||||
|
|
Loading…
Reference in a new issue