]
];
}
+ // (T140537) Disallow looking too far in the past for 'newbies' queries. If the user requested
+ // a timestamp offset far in the past such that there are no edits by users with user_ids in
+ // the range, we would end up scanning all revisions from that offset until start of time.
+ $condition[] = 'rev_timestamp > ' .
+ $this->mDb->addQuotes( $this->mDb->timestamp( wfTimestamp() - 30 * 24 * 60 * 60 ) );
} else {
$uid = User::idFromName( $this->target );
if ( $uid ) {
# Mark current revisions
$topmarktext = '';
$user = $this->getUser();
- if ( $row->rev_id == $row->page_latest ) {
+ if ( $row->rev_id === $row->page_latest ) {
$topmarktext .= '<span class="mw-uctop">' . $this->messages['uctop'] . '</span>';
+ $classes[] = 'mw-contributions-current';
# Add rollback link
if ( !$row->page_is_new && $page->quickUserCan( 'rollback', $user )
&& $page->quickUserCan( 'edit', $user )
);
$classes = array_merge( $classes, $newClasses );
+ Hooks::run( 'SpecialContributions::formatRow::flags', [ $this->getContext(), $row, &$flags ] );
+
$templateParams = [
'del' => $del,
'timestamp' => $d,