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

Change subject: Only you can prevent logspam
......................................................................


Only you can prevent logspam

Change-Id: Ic2255fa494cb30b59b740b9acb95fd2387b5fd7a
(cherry picked from commit 5c3b6ea63e4f1a78f37cb7175ddbd850df63c956)
---
M includes/Formatter/RecentChangesQuery.php
1 file changed, 5 insertions(+), 1 deletion(-)

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



diff --git a/includes/Formatter/RecentChangesQuery.php 
b/includes/Formatter/RecentChangesQuery.php
index 3311636..06742c0 100644
--- a/includes/Formatter/RecentChangesQuery.php
+++ b/includes/Formatter/RecentChangesQuery.php
@@ -3,6 +3,7 @@
 namespace Flow\Formatter;
 
 use Flow\Data\ManagerGroup;
+use Flow\Data\RecentChanges;
 use Flow\Exception\FlowException;
 use Flow\FlowActions;
 use Flow\Model\UUID;
@@ -30,12 +31,15 @@
        }
 
        /**
-        * @param AbstractRevision[]|ResultWrapper $rows
+        * @param stdClass[] List of recentchange database rows
         * @param bool $isWatchlist
         */
        public function loadMetadataBatch( $rows, $isWatchlist = false ) {
                $needed = array();
                foreach ( $rows as $row ) {
+                       if ( !isset( $row->rc_source ) || $row->rc_source !== 
RecentChanges::SRC_FLOW ) {
+                               continue;
+                       }
                        if ( !isset( $row->rc_params ) ) {
                                wfDebugLog( 'Flow', __METHOD__ . ': Bad row 
without rc_params passed in $rows' );
                                continue;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic2255fa494cb30b59b740b9acb95fd2387b5fd7a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: wmf/1.23wmf21
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to