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=?";