Fomafix has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/393378 )

Change subject: MergeHistory: Duplicate watchers on history merge
......................................................................

MergeHistory: Duplicate watchers on history merge

Bug: T132130
Change-Id: Ibb2be4f6f975f8f3c542689530fc120f8a464914
---
M includes/MergeHistory.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/78/393378/1

diff --git a/includes/MergeHistory.php b/includes/MergeHistory.php
index 9d63869..2b7372f 100644
--- a/includes/MergeHistory.php
+++ b/includes/MergeHistory.php
@@ -335,6 +335,10 @@
                }
                $this->dest->invalidateCache(); // update histories
 
+               // Duplicate watchers of the old article to the new article on 
history merge
+               $store = WatchedItemStore::getDefaultInstance();
+               $store->duplicateAllAssociatedEntries( $this->source, 
$this->dest );
+
                // Update our logs
                $logEntry = new ManualLogEntry( 'merge', 'merge' );
                $logEntry->setPerformer( $user );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibb2be4f6f975f8f3c542689530fc120f8a464914
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Fomafix <[email protected]>

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

Reply via email to