mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-17 18:41:01 +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