jenkins-bot has submitted this change and it was merged.

Change subject: Watch user page and user talk page by default
......................................................................


Watch user page and user talk page by default

When creating a new account, add the newly-created user's userpage and
talk page to their watchlist.

Bug: 49719
Change-Id: I9359682c890cb9249870a0a78a80a0076ba47f34
---
M includes/specials/SpecialUserlogin.php
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Isarra: Looks good to me, but someone else must approve
  Mattflaschen: Looks good to me, approved
  Legoktm: Looks good to me, but someone else must approve
  Swalling: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/includes/specials/SpecialUserlogin.php 
b/includes/specials/SpecialUserlogin.php
index 75b4a92..008ad5d 100644
--- a/includes/specials/SpecialUserlogin.php
+++ b/includes/specials/SpecialUserlogin.php
@@ -507,9 +507,12 @@
                $u->setOption( 'rememberpassword', $this->mRemember ? 1 : 0 );
                $u->saveSettings();
 
-               # Update user count
+               // Update user count
                DeferredUpdates::addUpdate( new SiteStatsUpdate( 0, 0, 0, 0, 1 
) );
 
+               // Watch user's userpage and talk page
+               $u->addWatch( $u->getUserPage(), 
WatchedItem::IGNORE_USER_RIGHTS );
+
                return Status::newGood( $u );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/95742
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I9359682c890cb9249870a0a78a80a0076ba47f34
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Isarra <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: MZMcBride <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
Gerrit-Reviewer: Platonides <[email protected]>
Gerrit-Reviewer: Swalling <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to