Aude has uploaded a new change for review.
https://gerrit.wikimedia.org/r/188113
Change subject: Omit 'external' changes from ChangesFeed
......................................................................
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.
Change-Id: I956a3c392e9f163478b9f6994bde4c0be8932163
---
M includes/changes/ChangesFeed.php
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/13/188113/1
diff --git a/includes/changes/ChangesFeed.php b/includes/changes/ChangesFeed.php
index 28c2f7e..28a1cca 100644
--- a/includes/changes/ChangesFeed.php
+++ b/includes/changes/ChangesFeed.php
@@ -187,6 +187,10 @@
$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 &&
--
To view, visit https://gerrit.wikimedia.org/r/188113
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I956a3c392e9f163478b9f6994bde4c0be8932163
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits