madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r23125: LJSUP-13883: Journal pages optimizaiton ...

Committer: sbelyaev
LJSUP-13883: Journal pages optimizaiton : stage 1
U   trunk/cgi-bin/LJ/RelationService.pm
Modified: trunk/cgi-bin/LJ/RelationService.pm
===================================================================
--- trunk/cgi-bin/LJ/RelationService.pm	2012-10-12 12:07:06 UTC (rev 23124)
+++ trunk/cgi-bin/LJ/RelationService.pm	2012-10-12 12:32:08 UTC (rev 23125)
@@ -144,7 +144,7 @@
 
     my $interface = $class->relation_api($u);
     my $result = $interface->create_relation_to($u, $friend, $type, %opts);
-    $singletons{$u->userid}->{$friend->userid}->{$type} = $result;
+    delete $singletons{$u->userid}->{$friend->userid};
     return $result;
 }
 
@@ -168,7 +168,7 @@
         }
     }
     my $interface = $class->relation_api($u);
-    delete $singletons{$u->userid}->{$friend->userid}->{$type};
+    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