From: aude Date: Mon, 2 Feb 2015 20:25:52 +0000 (-0500) Subject: Omit 'external' changes from ChangesFeed X-Git-Tag: 1.31.0-rc.0~11094^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=9b11ff7a42deeffe3a1677283188a9da8578b11d;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 &&