Kaligula has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/54654


Change subject: (bug 25325) fix hiding bot edits
......................................................................

(bug 25325) fix hiding bot edits

I added support for 'wlshow' parameter, which allows to exclude bot/minor/anon 
edits from feed watchlist.

Change-Id: Idab489fc017dcf226ea39f2f1766e06064e4ec0a
---
M includes/api/ApiFeedWatchlist.php
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/54/54654/1

diff --git a/includes/api/ApiFeedWatchlist.php 
b/includes/api/ApiFeedWatchlist.php
index 6c793b3..529102c 100644
--- a/includes/api/ApiFeedWatchlist.php
+++ b/includes/api/ApiFeedWatchlist.php
@@ -86,6 +86,11 @@
                        if ( $params['wlexcludeuser'] !== null ) {
                                $fauxReqArr['wlexcludeuser'] = 
$params['wlexcludeuser'];
                        }
+                       // Only list revisions that meet the 'wlshow' criteria
+                       if ( $params['wlshow'] !== null ) {
+                               $fauxReqArr['wlshow'] = $params['wlshow'];
+                       }
+
 
                        // Support linking to diffs instead of article
                        if ( $params['linktodiffs'] ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idab489fc017dcf226ea39f2f1766e06064e4ec0a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Kaligula <winn...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to