Merge "Use ConditionalUserOptions for "echo-subscriptions-email-dt-subscription""

This commit is contained in:
jenkins-bot 2024-06-16 09:32:34 +00:00 committed by Gerrit Code Review
commit 7c9450489d
2 changed files with 8 additions and 2 deletions

View file

@ -531,6 +531,14 @@
"discussiontools-autotopicsub": 1, "discussiontools-autotopicsub": 1,
"discussiontools-visualenhancements": 1 "discussiontools-visualenhancements": 1
}, },
"ConditionalUserOptions": {
"echo-subscriptions-email-dt-subscription": [
[
true,
[ "registered-after", "20240617000000" ]
]
]
},
"config": { "config": {
"DiscussionToolsBeta": { "DiscussionToolsBeta": {
"value": false, "value": false,

View file

@ -221,8 +221,6 @@ class PreferenceHooks implements
} }
$userOptionsManager = MediaWikiServices::getInstance()->getUserOptionsManager(); $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 // The auto topic subscription feature is disabled by default for existing users, but
// we enable it for new users (T294398). // we enable it for new users (T294398).
// This can only occur when the feature is available for everyone; when it's in beta, // This can only occur when the feature is available for everyone; when it's in beta,