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

[livejournal] r18872: LJSV-1521 (Non-friend can see protected ...

Committer: ailyin
LJSV-1521 (Non-friend can see protected entries after rename)
U   trunk/cgi-bin/LJ/User/Rename.pm
Modified: trunk/cgi-bin/LJ/User/Rename.pm
===================================================================
--- trunk/cgi-bin/LJ/User/Rename.pm	2011-04-14 02:28:10 UTC (rev 18871)
+++ trunk/cgi-bin/LJ/User/Rename.pm	2011-04-14 03:02:13 UTC (rev 18872)
@@ -234,7 +234,10 @@
             if ($users && @$users) {
                 my $in = join(',', @$users);
                 $dbh->do("DELETE FROM friends WHERE friendid=$u->{'userid'} AND userid IN ($in)");
-                LJ::memcache_kill($_, "friends") foreach @$users;
+                foreach my $fofid ( @$users ) {
+                    LJ::memcache_kill( $fofid, "friends" );
+                    LJ::MemCache::delete( [ $fofid, "frgmask:$fofid:$u->{'userid'}" ] );
+                }
             }
         }
 

Tags: andy, livejournal, 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