$feedType = $wgRequest->getVal( 'feed' );
if( $feedType ) {
+ // Maintain some level of backwards compatability
+ // If people request feeds using the old parameters, redirect to API
$apiParams = array(
'action' => 'feedcontributions',
'feedformat' => $feedType,
}
// Add RSS/atom links
- $this->addFeedLinks( array( 'action' => 'feedcontributions', 'user' => $wgUser->getName() ) );
+ $this->addFeedLinks( array( 'action' => 'feedcontributions', 'user' => $target ) );
if ( wfRunHooks( 'SpecialContributionsBeforeMainOutput', array( $id ) ) ) {