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

[livejournal] r16418: LJSV-1024 (Comment count on profile does...

Committer: ailyin
LJSV-1024 (Comment count on profile does not increase)

U   trunk/cgi-bin/talklib.pl
Modified: trunk/cgi-bin/talklib.pl
===================================================================
--- trunk/cgi-bin/talklib.pl	2010-03-22 11:12:14 UTC (rev 16417)
+++ trunk/cgi-bin/talklib.pl	2010-03-22 11:20:32 UTC (rev 16418)
@@ -2344,10 +2344,12 @@
                     "?, 'L', ?, ?, ?)", undef,
                     $posterid, $journalu->{userid}, $itemid, $jtalkid, $pub);
 
-            LJ::MemCache::incr([$posterid, "talkleftct:$posterid"]);
         } else {
             # both primary and backup talkleft hosts down.  can't do much now.
         }
+
+        my $poster = LJ::want_user($posterid);
+        $poster->set_prop('talkleftct' => $poster->prop('talkleftct') + 1);
     }
 
     $journalu->do("INSERT INTO talktext2 (journalid, jtalkid, subject, body) ".

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