Jdlrobson has uploaded a new change for review. https://gerrit.wikimedia.org/r/204680
Change subject: Write log entries for showlist and hidelist to Special:Log ...................................................................... Write log entries for showlist and hidelist to Special:Log http://localhost:8888/w/index.php?title=Special%3ALog&type=&user=&page=special%3AGather&pattern=1 will now show hidelist and showlist actions. * Also clean up some broken data - invalid url and irrelevant parameter left over from testing. Bug: T95250 Change-Id: I8f27acd82916ab799277a4fce21e7b9d407afab7 --- M includes/api/ApiEditList.php 1 file changed, 6 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather refs/changes/80/204680/1 diff --git a/includes/api/ApiEditList.php b/includes/api/ApiEditList.php index 361992f..05cc51e 100644 --- a/includes/api/ApiEditList.php +++ b/includes/api/ApiEditList.php @@ -150,17 +150,20 @@ // If CheckUser installed, give it a heads up if ( is_callable( '\CheckUserHooks::updateCheckUserData' ) ) { $user = $this->getUser(); - $target = SpecialPage::getTitleFor( 'Gather' )->getSubPage( 'by' ) - ->getSubPage( $user->getName() )->getSubPage( $id ); + $target = SpecialPage::getTitleFor( 'Gather' )->getSubPage( 'id' ) + ->getSubPage( $id ); $entry = new ManualLogEntry( 'gather', 'action' ); $entry->setPerformer( $user ); $entry->setTarget( $target ); $params = array( - 'username' => 'bob', 'action' => $action, ); $entry->setParameters( $params ); $rc = $entry->getRecentChange(); + // Surface hide and unhide actions in Special:Log + if ( $action === 'hidelist' || $action === 'showlist' ) { + $entry->insert(); + } \CheckUserHooks::updateCheckUserData( $rc ); } } -- To view, visit https://gerrit.wikimedia.org/r/204680 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8f27acd82916ab799277a4fce21e7b9d407afab7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Gather Gerrit-Branch: master Gerrit-Owner: Jdlrobson <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
