Extension:UserMerge

The UserMerge extension allows wiki users with the usermerge permission (Bureaucrat by default) to merge one Wiki user's account with another Wiki user's account.

The extension allows to


 * merge (refer contributions, texts, watchlists, edit count of a first account A to a second account B)


 * delete the first account A after the merge (option box)

Limitations


 * you cannot delete a user A without having merged the user A to B


 * you cannot merge your own account (logged-in user) into a different user

Extras


 * if you omit the "New User" field, then the extension auto-populates the New User as "Anonymous" (user_id 0), and ask you to confirm a merge to Anonymous. This is used for user deletion: you first empty (merge to user 0) contributions of a user A, and then delete the user A.


 * If your version of the extension complains about an empty "New User" field you can fill in  "Anonymous"


 * the extension creates a User Merge log and logs all User Merge extension activity.

Usage

 * follow 1>#Installation|Installation Instructions


 * a new Special Page Special:UserMerge with the title Merge and Delete Users is created


 * unmergeable users can be defined (examples):

You can use RevisionDelete extension installed by default to replace the UserMerge logs information with neutral information.

Active RevisionDelete in LocalSettings.php with : $wgGroupPermissions['sysop']['deletelogentry'] = true; $wgGroupPermissions['sysop']['deleterevision'] = true; Then, from Special:Log/usermerge, you can check and disable the logs content resulting from modifications made by UserMerge with simple check box.

A better approach would be with CleanMediawiki.sh script for delete massive spam user and all logs : https://github.com/ZerooCool/cleanmediawiki

Known issues

 * See tasks in Wikimedia Phabricator.