Omit 'external' changes from ChangesFeed
authoraude <aude.wiki@gmail.com>
Mon, 2 Feb 2015 20:25:52 +0000 (15:25 -0500)
committerAude <aude.wiki@gmail.com>
Mon, 2 Feb 2015 20:32:07 +0000 (20:32 +0000)
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

index 28c2f7e..28a1cca 100644 (file)
@@ -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 &&