madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r23254: LJSUP-14169: Can't rename account

Committer: sbelyaev
LJSUP-14169: Can't rename account
U   trunk/cgi-bin/LJ/RelationService.pm
Modified: trunk/cgi-bin/LJ/RelationService.pm
===================================================================
--- trunk/cgi-bin/LJ/RelationService.pm	2012-11-06 07:42:17 UTC (rev 23253)
+++ trunk/cgi-bin/LJ/RelationService.pm	2012-11-06 07:59:31 UTC (rev 23254)
@@ -173,7 +173,9 @@
         }
     }
     my $interface = $class->relation_api($u);
-    delete $singletons{$u->userid}->{$friend->userid};
+    if ($u ne '*' && UNIVERSAL::isa($u, 'LJ::User')) {
+        delete $singletons{$u->userid}->{$friend->userid};
+    }
     return $interface->remove_relation_to($u, $friend, $type);
 }
 

Tags: livejournal, madeon, pm, sbelyaev
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