Committer: sbelyaev
LJSUP-14169: Can't rename accountU 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); }