Don't attempt to update the watchlist if temp user creation is active

IP users and temp users can't use the watchlist anyway.

Bug: T327305
Change-Id: Idc28ecab5291251da9cee294015cde78e6702499
This commit is contained in:
Tim Starling 2023-06-23 09:35:11 +10:00 committed by Bartosz Dziewoński
parent 52360c9e9e
commit 297dc2d7ca

View file

@ -2665,6 +2665,9 @@ class EditPage implements IEditObject {
* Register the change of watch status
*/
private function updateWatchlist(): void {
if ( $this->tempUserCreateActive ) {
return;
}
$user = $this->getUserForSave();
if ( !$user->isNamed() ) {
return;