mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 19:09:52 +00:00
Merge "Hooks: Don't set Echo options for temp users"
This commit is contained in:
commit
0745e2cc95
|
@ -320,7 +320,7 @@ class Hooks {
|
|||
public static function onAccountCreated( $user, $autocreated ) {
|
||||
// New users get echo preferences set that are not the default settings for existing users.
|
||||
// Specifically, new users are opted into email notifications for thanks.
|
||||
if ( !$autocreated ) {
|
||||
if ( !$user->isTemp() && !$autocreated ) {
|
||||
$userOptionsManager = MediaWikiServices::getInstance()->getUserOptionsManager();
|
||||
$userOptionsManager->setOption( $user, 'echo-subscriptions-email-edit-thank', true );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue