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

[livejournal] r18124: LJINT-362 (Comments for side projects)

Committer: ailyin
LJINT-362 (Comments for side projects)
U   trunk/cgi-bin/LJ/Entry.pm
Modified: trunk/cgi-bin/LJ/Entry.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry.pm	2011-01-27 08:17:36 UTC (rev 18123)
+++ trunk/cgi-bin/LJ/Entry.pm	2011-01-27 08:55:32 UTC (rev 18124)
@@ -2353,6 +2353,9 @@
             ? sub { LJ::MemCache::decr($memkey, $value) }
             : sub { LJ::MemCache::incr($memkey, $value) };
     
+    my $entry = LJ::Entry->new( $u, 'jitemid' => $jitemid );
+    LJ::run_hooks( 'replycount_change', $entry );
+
     ##
     my $sql_sign = $action eq 'decr' ? '-' : '+';
     my $sql = "UPDATE log2 SET replycount=LAST_INSERT_ID(replycount $sql_sign $value) WHERE journalid=? AND jitemid=?";

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