jenkins-bot has submitted this change and it was merged.

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, 6 insertions(+), 0 deletions(-)

Approvals:
  Matthias Mullie: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/Data/RecentChanges.php b/includes/Data/RecentChanges.php
index a9edc57..8c5ca17 100644
--- a/includes/Data/RecentChanges.php
+++ b/includes/Data/RecentChanges.php
@@ -54,6 +54,12 @@
         * @param array $changes
         */
        protected function insert( $action, $block, $revisionType, $revisionId, 
array $row, Workflow $workflow, $timestamp, array $changes ) {
+               if ( $action === 'suppress-topic' || $action === 
'suppress-post' ) {
+                       // @todo: should be move this into FlowActions.php 
somehow?
+                       // 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: merged
Gerrit-Change-Id: I52e61f420b227f4a1ba29c09a9abb42f2a255c4f
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Matthias Mullie <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to