From 9b11ff7a42deeffe3a1677283188a9da8578b11d Mon Sep 17 00:00:00 2001 From: aude Date: Mon, 2 Feb 2015 15:25:52 -0500 Subject: [PATCH] Omit 'external' changes from ChangesFeed The current formatting does not display these external changes very well (e.g. doesn't distinguish between local and foreign wiki user or whatnot). Unless there is better handling or integration of these, also with the option of hiding or showing, it is best to simply exclude these from the feed. This brings the ChangesFeed inline with default behavior of Special:RecentChanges and Watchlist. Bug: T88254 Change-Id: I956a3c392e9f163478b9f6994bde4c0be8932163 --- includes/changes/ChangesFeed.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/changes/ChangesFeed.php b/includes/changes/ChangesFeed.php index 28c2f7ed4c..28a1ccadd4 100644 --- a/includes/changes/ChangesFeed.php +++ b/includes/changes/ChangesFeed.php @@ -187,6 +187,10 @@ class ChangesFeed { $sorted = array(); $n = 0; foreach ( $rows as $obj ) { + if ( $obj->rc_type == RC_EXTERNAL ) { + continue; + } + if ( $n > 0 && $obj->rc_type == RC_EDIT && $obj->rc_namespace >= 0 && -- 2.20.1