3 * Implements Special:Contributions
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * http://www.gnu.org/copyleft/gpl.html
21 * @ingroup SpecialPage
25 * Special:Contributions, show user contributions in a paged list
27 * @ingroup SpecialPage
30 class SpecialContributions
extends SpecialPage
{
32 public function __construct() {
33 parent
::__construct( 'Contributions' );
36 public function execute( $par ) {
37 global $wgUser, $wgOut, $wgRequest;
40 $this->outputHeader();
42 $this->opts
= array();
44 if( $par == 'newbies' ) {
46 $this->opts
['contribs'] = 'newbie';
47 } elseif( isset( $par ) ) {
50 $target = $wgRequest->getVal( 'target' );
54 if( $wgRequest->getVal( 'contribs' ) == 'newbie' ) {
56 $this->opts
['contribs'] = 'newbie';
59 $this->opts
['deletedOnly'] = $wgRequest->getCheck( 'deletedOnly' );
61 if( !strlen( $target ) ) {
62 $wgOut->addHTML( $this->getForm() );
66 $this->opts
['limit'] = $wgRequest->getInt( 'limit', $wgUser->getOption('rclimit') );
67 $this->opts
['target'] = $target;
68 $this->opts
['topOnly'] = $wgRequest->getCheck( 'topOnly' );
70 $nt = Title
::makeTitleSafe( NS_USER
, $target );
72 $wgOut->addHTML( $this->getForm() );
75 $id = User
::idFromName( $nt->getText() );
77 if( $target != 'newbies' ) {
78 $target = $nt->getText();
79 $wgOut->setSubtitle( $this->contributionsSub( $nt, $id ) );
80 $wgOut->setHTMLTitle( wfMsg( 'pagetitle', wfMsgExt( 'contributions-title', array( 'parsemag' ),$target ) ) );
82 $wgOut->setSubtitle( wfMsgHtml( 'sp-contributions-newbies-sub') );
83 $wgOut->setHTMLTitle( wfMsg( 'pagetitle', wfMsg( 'sp-contributions-newbies-title' ) ) );
86 if( ( $ns = $wgRequest->getVal( 'namespace', null ) ) !== null && $ns !== '' ) {
87 $this->opts
['namespace'] = intval( $ns );
89 $this->opts
['namespace'] = '';
92 $this->opts
['tagFilter'] = (string) $wgRequest->getVal( 'tagFilter' );
94 // Allows reverts to have the bot flag in recent changes. It is just here to
95 // be passed in the form at the top of the page
96 if( $wgUser->isAllowed( 'markbotedits' ) && $wgRequest->getBool( 'bot' ) ) {
97 $this->opts
['bot'] = '1';
100 $skip = $wgRequest->getText( 'offset' ) ||
$wgRequest->getText( 'dir' ) == 'prev';
101 # Offset overrides year/month selection
103 $this->opts
['year'] = '';
104 $this->opts
['month'] = '';
106 $this->opts
['year'] = $wgRequest->getIntOrNull( 'year' );
107 $this->opts
['month'] = $wgRequest->getIntOrNull( 'month' );
110 // Add RSS/atom links
111 $this->setSyndicated();
112 $feedType = $wgRequest->getVal( 'feed' );
114 return $this->feed( $feedType );
117 if ( wfRunHooks( 'SpecialContributionsBeforeMainOutput', array( $id ) ) ) {
119 $wgOut->addHTML( $this->getForm() );
121 $pager = new ContribsPager( array(
123 'namespace' => $this->opts
['namespace'],
124 'year' => $this->opts
['year'],
125 'month' => $this->opts
['month'],
126 'deletedOnly' => $this->opts
['deletedOnly'],
127 'topOnly' => $this->opts
['topOnly'],
129 if( !$pager->getNumRows() ) {
130 $wgOut->addWikiMsg( 'nocontribs', $target );
132 # Show a message about slave lag, if applicable
133 if( ( $lag = $pager->getDatabase()->getLag() ) > 0 )
134 $wgOut->showLagWarning( $lag );
137 '<p>' . $pager->getNavigationBar() . '</p>' .
139 '<p>' . $pager->getNavigationBar() . '</p>'
144 # Show the appropriate "footer" message - WHOIS tools, etc.
145 if( $target != 'newbies' ) {
146 $message = 'sp-contributions-footer';
147 if ( IP
::isIPAddress( $target ) ) {
148 $message = 'sp-contributions-footer-anon';
150 $user = User
::newFromName( $target );
151 if ( !$user ||
$user->isAnon() ) {
152 // No message for non-existing users
157 $text = wfMsgNoTrans( $message, $target );
158 if( !wfEmptyMsg( $message, $text ) && $text != '-' ) {
160 "<div class='mw-contributions-footer'>\n$1\n</div>",
161 array( $message, $target ) );
167 protected function setSyndicated() {
169 $wgOut->setSyndicated( true );
170 $wgOut->setFeedAppendQuery( wfArrayToCGI( $this->opts
) );
174 * Generates the subheading with links
175 * @param $nt Title object for the target
176 * @param $id Integer: User ID for the target
177 * @return String: appropriately-escaped HTML to be output literally
178 * @todo Fixme: almost the same as getSubTitle in SpecialDeletedContributions.php. Could be combined.
180 protected function contributionsSub( $nt, $id ) {
181 global $wgSysopUserBans, $wgLang, $wgUser, $wgOut;
183 $sk = $wgUser->getSkin();
185 if ( $id === null ) {
186 $user = htmlspecialchars( $nt->getText() );
188 $user = $sk->link( $nt, htmlspecialchars( $nt->getText() ) );
190 $userObj = User
::newFromName( $nt->getText(), /* check for username validity not needed */ false );
191 $talk = $nt->getTalkPage();
194 $tools[] = $sk->link( $talk, wfMsgHtml( 'sp-contributions-talk' ) );
195 if( ( $id !== null && $wgSysopUserBans ) ||
( $id === null && IP
::isIPAddress( $nt->getText() ) ) ) {
196 if( $wgUser->isAllowed( 'block' ) ) { # Block / Change block / Unblock links
197 if ( $userObj->isBlocked() ) {
198 $tools[] = $sk->linkKnown( # Change block link
199 SpecialPage
::getTitleFor( 'Blockip', $nt->getDBkey() ),
200 wfMsgHtml( 'change-blocklink' )
202 $tools[] = $sk->linkKnown( # Unblock link
203 SpecialPage
::getTitleFor( 'Ipblocklist' ),
204 wfMsgHtml( 'unblocklink' ),
207 'action' => 'unblock',
208 'ip' => $nt->getDBkey()
212 else { # User is not blocked
213 $tools[] = $sk->linkKnown( # Block link
214 SpecialPage
::getTitleFor( 'Blockip', $nt->getDBkey() ),
215 wfMsgHtml( 'blocklink' )
220 $tools[] = $sk->linkKnown(
221 SpecialPage
::getTitleFor( 'Log' ),
222 wfMsgHtml( 'sp-contributions-blocklog' ),
226 'page' => $nt->getPrefixedText()
231 $tools[] = $sk->linkKnown(
232 SpecialPage
::getTitleFor( 'Log' ),
233 wfMsgHtml( 'sp-contributions-logs' ),
235 array( 'user' => $nt->getText() )
238 # Add link to deleted user contributions for priviledged users
239 if( $wgUser->isAllowed( 'deletedhistory' ) ) {
240 $tools[] = $sk->linkKnown(
241 SpecialPage
::getTitleFor( 'DeletedContributions', $nt->getDBkey() ),
242 wfMsgHtml( 'sp-contributions-deleted' )
246 # Add a link to change user rights for privileged users
247 $userrightsPage = new UserrightsPage();
248 if( $id !== null && $userrightsPage->userCanChangeRights( User
::newFromId( $id ) ) ) {
249 $tools[] = $sk->linkKnown(
250 SpecialPage
::getTitleFor( 'Userrights', $nt->getDBkey() ),
251 wfMsgHtml( 'sp-contributions-userrights' )
255 wfRunHooks( 'ContributionsToolLinks', array( $id, $nt, &$tools ) );
257 $links = $wgLang->pipeList( $tools );
259 // Show a note if the user is blocked and display the last block log entry.
260 if ( $userObj->isBlocked() ) {
261 LogEventsList
::showLogExtract(
264 $nt->getPrefixedText(),
268 'showIfEmpty' => false,
271 'sp-contributions-blocked-notice-anon' :
272 'sp-contributions-blocked-notice',
273 $nt->getText() # Support GENDER in 'sp-contributions-blocked-notice'
275 'offset' => '' # don't use $wgRequest parameter offset
281 // Old message 'contribsub' had one parameter, but that doesn't work for
282 // languages that want to put the "for" bit right after $user but before
283 // $links. If 'contribsub' is around, use it for reverse compatibility,
284 // otherwise use 'contribsub2'.
285 if( wfEmptyMsg( 'contribsub', wfMsg( 'contribsub' ) ) ) {
286 return wfMsgHtml( 'contribsub2', $user, $links );
288 return wfMsgHtml( 'contribsub', "$user ($links)" );
293 * Generates the namespace selector form with hidden attributes.
294 * @return String: HTML fragment
296 protected function getForm() {
299 $this->opts
['title'] = $this->getTitle()->getPrefixedText();
300 if( !isset( $this->opts
['target'] ) ) {
301 $this->opts
['target'] = '';
303 $this->opts
['target'] = str_replace( '_' , ' ' , $this->opts
['target'] );
306 if( !isset( $this->opts
['namespace'] ) ) {
307 $this->opts
['namespace'] = '';
310 if( !isset( $this->opts
['contribs'] ) ) {
311 $this->opts
['contribs'] = 'user';
314 if( !isset( $this->opts
['year'] ) ) {
315 $this->opts
['year'] = '';
318 if( !isset( $this->opts
['month'] ) ) {
319 $this->opts
['month'] = '';
322 if( $this->opts
['contribs'] == 'newbie' ) {
323 $this->opts
['target'] = '';
326 if( !isset( $this->opts
['tagFilter'] ) ) {
327 $this->opts
['tagFilter'] = '';
330 if( !isset( $this->opts
['topOnly'] ) ) {
331 $this->opts
['topOnly'] = false;
334 $f = Xml
::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) );
336 # Add hidden params for tracking except for parameters in $skipParameters
337 $skipParameters = array( 'namespace', 'deletedOnly', 'target', 'contribs', 'year', 'month', 'topOnly' );
338 foreach ( $this->opts
as $name => $value ) {
339 if( in_array( $name, $skipParameters ) ) {
342 $f .= "\t" . Xml
::hidden( $name, $value ) . "\n";
345 $tagFilter = ChangeTags
::buildTagFilterSelector( $this->opts
['tagFilter'] );
348 Xml
::element( 'legend', array(), wfMsg( 'sp-contributions-search' ) ) .
349 Xml
::radioLabel( wfMsgExt( 'sp-contributions-newbies', array( 'parsemag' ) ),
350 'contribs', 'newbie' , 'newbie', $this->opts
['contribs'] == 'newbie' ?
true : false ) . '<br />' .
351 Xml
::radioLabel( wfMsgExt( 'sp-contributions-username', array( 'parsemag' ) ),
352 'contribs' , 'user', 'user', $this->opts
['contribs'] == 'user' ?
true : false ) . ' ' .
353 Html
::input( 'target', $this->opts
['target'], 'text', array(
356 ) +
( $this->opts
['target'] ?
array() : array( 'autofocus' ) ) ) . ' '.
357 '<span style="white-space: nowrap">' .
358 Xml
::label( wfMsg( 'namespace' ), 'namespace' ) . ' ' .
359 Xml
::namespaceSelector( $this->opts
['namespace'], '' ) .
361 Xml
::checkLabel( wfMsg( 'history-show-deleted' ),
362 'deletedOnly', 'mw-show-deleted-only', $this->opts
['deletedOnly'] ) . '<br />' .
363 Xml
::tags( 'p', null, Xml
::checkLabel( wfMsg( 'sp-contributions-toponly' ),
364 'topOnly', 'mw-show-top-only', $this->opts
['topOnly'] ) ) .
365 ( $tagFilter ? Xml
::tags( 'p', null, implode( ' ', $tagFilter ) ) : '' ) .
366 Xml
::openElement( 'p' ) .
367 '<span style="white-space: nowrap">' .
368 Xml
::dateMenu( $this->opts
['year'], $this->opts
['month'] ) .
370 Xml
::submitButton( wfMsg( 'sp-contributions-submit' ) ) .
371 Xml
::closeElement( 'p' );
373 $explain = wfMsgExt( 'sp-contributions-explain', 'parseinline' );
374 if( !wfEmptyMsg( 'sp-contributions-explain', $explain ) )
375 $f .= "<p id='mw-sp-contributions-explain'>{$explain}</p>";
377 $f .= '</fieldset>' .
378 Xml
::closeElement( 'form' );
383 * Output a subscription feed listing recent edits to this page.
384 * @param $type String
386 protected function feed( $type ) {
387 global $wgFeed, $wgFeedClasses, $wgFeedLimit, $wgOut;
390 $wgOut->addWikiMsg( 'feed-unavailable' );
394 if( !isset( $wgFeedClasses[$type] ) ) {
395 $wgOut->addWikiMsg( 'feed-invalid' );
399 $feed = new $wgFeedClasses[$type](
401 wfMsgExt( 'tagline', 'parsemag' ),
402 $this->getTitle()->getFullUrl() . "/" . urlencode($this->opts
['target'])
405 // Already valid title
406 $nt = Title
::makeTitleSafe( NS_USER
, $this->opts
['target'] );
407 $target = $this->opts
['target'] == 'newbies' ?
'newbies' : $nt->getText();
409 $pager = new ContribsPager( array(
411 'namespace' => $this->opts
['namespace'],
412 'year' => $this->opts
['year'],
413 'month' => $this->opts
['month'],
414 'tagFilter' => $this->opts
['tagFilter'],
415 'deletedOnly' => $this->opts
['deletedOnly'],
416 'topOnly' => $this->opts
['topOnly'],
419 $pager->mLimit
= min( $this->opts
['limit'], $wgFeedLimit );
422 if( $pager->getNumRows() > 0 ) {
423 while( $row = $pager->mResult
->fetchObject() ) {
424 $feed->outItem( $this->feedItem( $row ) );
430 protected function feedTitle() {
431 global $wgContLanguageCode, $wgSitename;
432 $page = SpecialPage
::getPage( 'Contributions' );
433 $desc = $page->getDescription();
434 return "$wgSitename - $desc [$wgContLanguageCode]";
437 protected function feedItem( $row ) {
438 $title = Title
::MakeTitle( intval( $row->page_namespace
), $row->page_title
);
440 $date = $row->rev_timestamp
;
441 $comments = $title->getTalkPage()->getFullURL();
442 $revision = Revision
::newFromTitle( $title, $row->rev_id
);
445 $title->getPrefixedText(),
446 $this->feedItemDesc( $revision ),
447 $title->getFullURL(),
449 $this->feedItemAuthor( $revision ),
457 protected function feedItemAuthor( $revision ) {
458 return $revision->getUserText();
461 protected function feedItemDesc( $revision ) {
463 return '<p>' . htmlspecialchars( $revision->getUserText() ) . wfMsgForContent( 'colon-separator' ) .
464 htmlspecialchars( FeedItem
::stripComment( $revision->getComment() ) ) .
465 "</p>\n<hr />\n<div>" .
466 nl2br( htmlspecialchars( $revision->getText() ) ) . "</div>";
473 * Pager for Special:Contributions
474 * @ingroup SpecialPage Pager
476 class ContribsPager
extends ReverseChronologicalPager
{
477 public $mDefaultDirection = true;
478 var $messages, $target;
479 var $namespace = '', $mDb;
481 function __construct( $options ) {
482 parent
::__construct();
484 $msgs = array( 'uctop', 'diff', 'newarticle', 'rollbacklink', 'diff', 'hist', 'rev-delundel', 'pipe-separator' );
486 foreach( $msgs as $msg ) {
487 $this->messages
[$msg] = wfMsgExt( $msg, array( 'escapenoentities' ) );
490 $this->target
= isset( $options['target'] ) ?
$options['target'] : '';
491 $this->namespace = isset( $options['namespace'] ) ?
$options['namespace'] : '';
492 $this->tagFilter
= isset( $options['tagFilter'] ) ?
$options['tagFilter'] : false;
494 $this->deletedOnly
= !empty( $options['deletedOnly'] );
495 $this->topOnly
= !empty( $options['topOnly'] );
497 $year = isset( $options['year'] ) ?
$options['year'] : false;
498 $month = isset( $options['month'] ) ?
$options['month'] : false;
499 $this->getDateCond( $year, $month );
501 $this->mDb
= wfGetDB( DB_SLAVE
, 'contributions' );
504 function getDefaultQuery() {
505 $query = parent
::getDefaultQuery();
506 $query['target'] = $this->target
;
510 function getQueryInfo() {
512 list( $tables, $index, $userCond, $join_cond ) = $this->getUserCond();
514 $conds = array_merge( $userCond, $this->getNamespaceCond() );
515 // Paranoia: avoid brute force searches (bug 17342)
516 if( !$wgUser->isAllowed( 'deletedhistory' ) ) {
517 $conds[] = $this->mDb
->bitAnd('rev_deleted',Revision
::DELETED_USER
) . ' = 0';
518 } else if( !$wgUser->isAllowed( 'suppressrevision' ) ) {
519 $conds[] = $this->mDb
->bitAnd('rev_deleted',Revision
::SUPPRESSED_USER
) .
520 ' != ' . Revision
::SUPPRESSED_USER
;
522 $join_cond['page'] = array( 'INNER JOIN', 'page_id=rev_page' );
527 'page_namespace', 'page_title', 'page_is_new', 'page_latest', 'page_is_redirect',
528 'page_len','rev_id', 'rev_page', 'rev_text_id', 'rev_timestamp', 'rev_comment',
529 'rev_minor_edit', 'rev_user', 'rev_user_text', 'rev_parent_id', 'rev_deleted'
532 'options' => array( 'USE INDEX' => array('revision' => $index) ),
533 'join_conds' => $join_cond
536 ChangeTags
::modifyDisplayQuery(
537 $queryInfo['tables'],
538 $queryInfo['fields'],
540 $queryInfo['join_conds'],
541 $queryInfo['options'],
545 wfRunHooks( 'ContribsPager::getQueryInfo', array( &$this, &$queryInfo ) );
549 function getUserCond() {
550 $condition = array();
551 $join_conds = array();
552 if( $this->target
== 'newbies' ) {
553 $tables = array( 'user_groups', 'page', 'revision' );
554 $max = $this->mDb
->selectField( 'user', 'max(user_id)', false, __METHOD__
);
555 $condition[] = 'rev_user >' . (int)($max - $max / 100);
556 $condition[] = 'ug_group IS NULL';
557 $index = 'user_timestamp';
558 # FIXME: other groups may have 'bot' rights
559 $join_conds['user_groups'] = array( 'LEFT JOIN', "ug_user = rev_user AND ug_group = 'bot'" );
561 $tables = array( 'page', 'revision' );
562 $condition['rev_user_text'] = $this->target
;
563 $index = 'usertext_timestamp';
565 if( $this->deletedOnly
) {
566 $condition[] = "rev_deleted != '0'";
568 if( $this->topOnly
) {
569 $condition[] = "rev_id = page_latest";
571 return array( $tables, $index, $condition, $join_conds );
574 function getNamespaceCond() {
575 if( $this->namespace !== '' ) {
576 return array( 'page_namespace' => (int)$this->namespace );
582 function getIndexField() {
583 return 'rev_timestamp';
586 function getStartBody() {
590 function getEndBody() {
595 * Generates each row in the contributions list.
597 * Contributions which are marked "top" are currently on top of the history.
598 * For these contributions, a [rollback] link is shown for users with roll-
599 * back privileges. The rollback link restores the most recent version that
600 * was not written by the target user.
602 * @todo This would probably look a lot nicer in a table.
604 function formatRow( $row ) {
605 global $wgUser, $wgLang, $wgContLang;
606 wfProfileIn( __METHOD__
);
608 $sk = $this->getSkin();
609 $rev = new Revision( $row );
612 $page = Title
::newFromRow( $row );
613 $page->resetArticleId( $row->rev_page
); // use process cache
616 htmlspecialchars( $page->getPrefixedText() ),
618 $page->isRedirect() ?
array( 'redirect' => 'no' ) : array()
620 # Mark current revisions
621 $difftext = $topmarktext = '';
622 if( $row->rev_id
== $row->page_latest
) {
623 $topmarktext .= '<span class="mw-uctop">' . $this->messages
['uctop'] . '</span>';
625 if( !$row->page_is_new
&& $page->quickUserCan( 'rollback' )
626 && $page->quickUserCan( 'edit' ) )
628 $topmarktext .= ' '.$sk->generateRollback( $rev );
631 # Is there a visible previous revision?
632 if( $rev->userCan( Revision
::DELETED_TEXT
) && $rev->getParentId() !== 0 ) {
633 $difftext = $sk->linkKnown(
635 $this->messages
['diff'],
639 'oldid' => $row->rev_id
643 $difftext = $this->messages
['diff'];
645 $histlink = $sk->linkKnown(
647 $this->messages
['hist'],
649 array( 'action' => 'history' )
652 $comment = $wgContLang->getDirMark() . $sk->revComment( $rev, false, true );
653 $date = $wgLang->timeanddate( wfTimestamp( TS_MW
, $row->rev_timestamp
), true );
654 if( $rev->userCan( Revision
::DELETED_TEXT
) ) {
657 htmlspecialchars($date),
659 array( 'oldid' => intval( $row->rev_id
) )
664 if( $rev->isDeleted( Revision
::DELETED_TEXT
) ) {
665 $d = '<span class="history-deleted">' . $d . '</span>';
668 if( $this->target
== 'newbies' ) {
669 $userlink = ' . . ' . $sk->userLink( $row->rev_user
, $row->rev_user_text
);
670 $userlink .= ' ' . wfMsg( 'parentheses', $sk->userTalkLink( $row->rev_user
, $row->rev_user_text
) ) . ' ';
675 if( $rev->getParentId() === 0 ) {
676 $nflag = ChangesList
::flag( 'newpage' );
681 if( $rev->isMinor() ) {
682 $mflag = ChangesList
::flag( 'minor' );
687 // Don't show useless link to people who cannot hide revisions
688 $canHide = $wgUser->isAllowed( 'deleterevision' );
689 if( $canHide ||
($rev->getVisibility() && $wgUser->isAllowed('deletedhistory')) ) {
690 if( !$rev->userCan( Revision
::DELETED_RESTRICTED
) ) {
691 $del = $this->mSkin
->revDeleteLinkDisabled( $canHide ); // revision was hidden from sysops
694 'type' => 'revision',
695 'target' => $page->getPrefixedDbkey(),
696 'ids' => $rev->getId()
698 $del = $this->mSkin
->revDeleteLink( $query,
699 $rev->isDeleted( Revision
::DELETED_RESTRICTED
), $canHide );
706 $diffHistLinks = '(' . $difftext . $this->messages
['pipe-separator'] . $histlink . ')';
707 $ret = "{$del}{$d} {$diffHistLinks} {$nflag}{$mflag} {$link}{$userlink} {$comment} {$topmarktext}";
709 # Denote if username is redacted for this edit
710 if( $rev->isDeleted( Revision
::DELETED_USER
) ) {
711 $ret .= " <strong>" . wfMsgHtml('rev-deleted-user-contribs') . "</strong>";
715 list($tagSummary, $newClasses) = ChangeTags
::formatSummaryRow( $row->ts_tags
, 'contributions' );
716 $classes = array_merge( $classes, $newClasses );
717 $ret .= " $tagSummary";
719 // Let extensions add data
720 wfRunHooks( 'ContributionsLineEnding', array( &$this, &$ret, $row ) );
722 $classes = implode( ' ', $classes );
723 $ret = "<li class=\"$classes\">$ret</li>\n";
724 wfProfileOut( __METHOD__
);
729 * Get the Database object in use
733 public function getDatabase() {
738 * Overwrite Pager function and return a helpful comment
740 function getSqlComment() {
741 if ( $this->namespace ||
$this->deletedOnly
) {
742 return 'contributions page filtered for namespace or RevisionDeleted edits'; // potentially slow, see CR r58153
744 return 'contributions page unfiltered';