r50070 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50069‎ | r50070 | r50071 >
Date:07:19, 30 April 2009
Author:aaron
Status:ok
Tags:
Comment:
Tweaked account hiding & renaming limits
Modified paths:
  • /trunk/extensions/Renameuser/SpecialRenameuser.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialBlockip.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialBlockip.php
@@ -42,6 +42,8 @@
4343 */
4444 class IPBlockForm {
4545 var $BlockAddress, $BlockExpiry, $BlockReason;
 46+ // The maximum number of edits a user can have and still be hidden
 47+ const HIDEUSER_CONTRIBLIMIT = 1000;
4648
4749 public function __construct( $par ) {
4850 global $wgRequest, $wgUser, $wgBlockAllowsUTEdit;
@@ -397,7 +399,7 @@
398400 } else if( $expiry !== 'infinity' ) {
399401 // Bad expiry.
400402 return array('ipb_expiry_temp');
401 - } else if( User::edits($userId) > 3000 ) {
 403+ } else if( User::edits($userId) > self::HIDEUSER_CONTRIBLIMIT ) {
402404 // Typically, the user should have a handful of edits.
403405 // Disallow hiding users with many edits for performance.
404406 return array('ipb_hide_invalid');
Index: trunk/extensions/Renameuser/SpecialRenameuser.php
@@ -32,8 +32,8 @@
3333 * The maximum number of edits a user can have and still be allowed renaming,
3434 * set it to 0 to disable the limit.
3535 */
36 -define( 'RENAMEUSER_CONTRIBLIMIT', 2000000 );
37 -define( 'RENAMEUSER_CONTRIBJOB', 10000 );
 36+define( 'RENAMEUSER_CONTRIBLIMIT', 1000000 );
 37+define( 'RENAMEUSER_CONTRIBJOB', 5000 );
3838
3939 # Add a new log type
4040 global $wgLogTypes, $wgLogNames, $wgLogHeaders, $wgLogActions;

Follow-up revisions

RevisionCommit summaryAuthorDate
r50162Backports for the hide user feature:...tstarling07:58, 4 May 2009

Status & tagging log