EBernhardson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/166916
Change subject: Bug: Duplicate items on watchlist
......................................................................
Bug: Duplicate items on watchlist
Watchlist was not always being detected correctly, causing beta labs to
not call RecentChangesQuery::isRecordHidden. Patch utilizes the recently
added ChangesList::isWatchlist method to detect when watchlist is being
rendered.
Bug: 71619
Change-Id: I6c7473afdddbcbcf0dd8e5d7949d718e5062661f
---
M Hooks.php
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/16/166916/1
diff --git a/Hooks.php b/Hooks.php
index c35ab45..7810ead 100644
--- a/Hooks.php
+++ b/Hooks.php
@@ -206,7 +206,10 @@
set_error_handler( new Flow\RecoverableErrorHandler, -1 );
try {
- Container::get( 'query.recentchanges'
)->loadMetadataBatch( $rows );
+ Container::get( 'query.recentchanges'
)->loadMetadataBatch(
+ $rows,
+ $changesList->isWatchlist()
+ );
} catch ( Exception $e ) {
\MWExceptionHandler::logException( $e );
}
--
To view, visit https://gerrit.wikimedia.org/r/166916
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6c7473afdddbcbcf0dd8e5d7949d718e5062661f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits