Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -149,6 +149,7 @@ |
150 | 150 | * (bug 30591) Add support to only return keys in ApiAllMessages. |
151 | 151 | * The API now respects $wgShowHostnames and won't share the hostname in |
152 | 152 | severedby if it's set to false |
| 153 | +* wlexcludeuser parameter added to ApiFeedWatchlist |
153 | 154 | |
154 | 155 | === Languages updated in 1.19 === |
155 | 156 | |
Index: trunk/phase3/includes/api/ApiFeedWatchlist.php |
— | — | @@ -70,6 +70,9 @@ |
71 | 71 | if( !isset( $wgFeedClasses[ $params['feedformat'] ] ) ) { |
72 | 72 | $this->dieUsage( 'Invalid subscription feed type', 'feed-invalid' ); |
73 | 73 | } |
| 74 | + if ( !is_null( $params['wlexcludeuser'] ) ) { |
| 75 | + $fauxReqArr['wlexcludeuser'] = $params['wlexcludeuser']; |
| 76 | + } |
74 | 77 | |
75 | 78 | // limit to the number of hours going from now back |
76 | 79 | $endTime = wfTimestamp( TS_MW, time() - intval( $params['hours'] * 60 * 60 ) ); |
— | — | @@ -194,6 +197,9 @@ |
195 | 198 | 'wltoken' => array( |
196 | 199 | ApiBase::PARAM_TYPE => 'string' |
197 | 200 | ), |
| 201 | + 'wlexcludeuser' => array( |
| 202 | + ApiBase::PARAM_TYPE => 'user' |
| 203 | + ), |
198 | 204 | 'linktodiffs' => false, |
199 | 205 | ); |
200 | 206 | } |
— | — | @@ -203,9 +209,10 @@ |
204 | 210 | 'feedformat' => 'The format of the feed', |
205 | 211 | 'hours' => 'List pages modified within this many hours from now', |
206 | 212 | 'allrev' => 'Include multiple revisions of the same page within given timeframe', |
207 | | - 'wlowner' => "The user whose watchlist you want (must be accompanied by {$this->getModulePrefix()}token if it's not you)", |
| 213 | + 'wlowner' => "The user whose watchlist you want (must be accompanied by {$this->getModulePrefix()}wltoken if it's not you)", |
208 | 214 | 'wltoken' => 'Security token that requested user set in their preferences', |
209 | | - 'linktodiffs' => 'Link to change differences instead of article pages' |
| 215 | + 'wlexcludeuser' => 'A user whose edits should not be shown in the watchlist', |
| 216 | + 'linktodiffs' => 'Link to change differences instead of article pages', |
210 | 217 | ); |
211 | 218 | } |
212 | 219 | |