vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17714: LJSV-1254: Friends of counter is frozen ...

Committer: vad
LJSV-1254: Friends of counter is frozen on community profile page
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2010-11-18 05:05:16 UTC (rev 17713)
+++ trunk/cgi-bin/LJ/User.pm	2010-11-18 05:18:13 UTC (rev 17714)
@@ -4475,19 +4475,17 @@
 
     if ($counter){
         my $u = LJ::load_userid($uid);
-        if ($u->can_be_counted_as_friendof){
-            ## Memcached: http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt
-            ##  the item must already
-            ##  exist for incr/decr to work; these commands won't pretend that a
-            ##  non-existent key exists with value 0; instead, they will fail.
-            ##
-            ## Incr/Decr doesn't change a key expiration time, 
-            ##
-            if ($action eq 'incr'){
-                LJ::MemCache::incr($precise_friendsof_counter);
-            } elsif ($action eq 'decr'){
-                LJ::MemCache::decr($precise_friendsof_counter);
-            }
+        ## Memcached: http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt
+        ##  the item must already
+        ##  exist for incr/decr to work; these commands won't pretend that a
+        ##  non-existent key exists with value 0; instead, they will fail.
+        ##
+        ## Incr/Decr doesn't change a key expiration time, 
+        ##
+        if ($action eq 'incr'){
+            LJ::MemCache::incr($precise_friendsof_counter);
+        } elsif ($action eq 'decr'){
+            LJ::MemCache::decr($precise_friendsof_counter);
         }
     }
 

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