Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r10393: LJSUP-8606 (Username is missing after up...

Committer: ailyin
LJSUP-8606 (Username is missing after upgrade account): when upgrading, rename identities with redirects
U   trunk/cgi-bin/LJ/Widget/ConvertIdentityAccount.pm
Modified: trunk/cgi-bin/LJ/Widget/ConvertIdentityAccount.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/ConvertIdentityAccount.pm	2011-04-18 02:51:37 UTC (rev 10392)
+++ trunk/cgi-bin/LJ/Widget/ConvertIdentityAccount.pm	2011-04-18 03:11:33 UTC (rev 10393)
@@ -112,8 +112,10 @@
     my $u = LJ::get_remote() or return;
 
     LJ::User::Rename::basic_rename($u->username, $opts{'user'}, {
-        'token'     => '[convert]',
-        'nonotify'  => 1,
+        'token'                 => '[convert]',
+        'nonotify'              => 1,
+        'preserve_old_username' => 1,
+        'opt_redir'             => 1,
     });
     $u->{'user'} = $opts{'user'};
 

Tags: andy, ljcom, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments