Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/111158
Change subject: Don't send suppression log entries to recentchanges
......................................................................
Don't send suppression log entries to recentchanges
Bug: 60814
Change-Id: I52e61f420b227f4a1ba29c09a9abb42f2a255c4f
---
M includes/Data/RecentChanges.php
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/58/111158/1
diff --git a/includes/Data/RecentChanges.php b/includes/Data/RecentChanges.php
index a9edc57..c38a5cc 100644
--- a/includes/Data/RecentChanges.php
+++ b/includes/Data/RecentChanges.php
@@ -54,6 +54,11 @@
* @param array $changes
*/
protected function insert( $action, $block, $revisionType, $revisionId,
array $row, Workflow $workflow, $timestamp, array $changes ) {
+ if ( $action === 'suppress-topic' || $action ===
'suppress-post' ) {
+ // Suppression log entries should not go to
recentchanges (bug 60814)
+ return;
+ }
+
if ( $timestamp instanceof UUID ) {
$timestamp = $timestamp->getTimestamp();
}
--
To view, visit https://gerrit.wikimedia.org/r/111158
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I52e61f420b227f4a1ba29c09a9abb42f2a255c4f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits