Committer: ailyin
LJINT-467 (Comments for side projects (Lenta.ru olympics))U trunk/htdocs/tools/endpoints/comments.bml
Modified: trunk/htdocs/tools/endpoints/comments.bml =================================================================== --- trunk/htdocs/tools/endpoints/comments.bml 2012-07-13 14:24:39 UTC (rev 12288) +++ trunk/htdocs/tools/endpoints/comments.bml 2012-07-13 14:28:54 UTC (rev 12289) @@ -72,6 +72,26 @@ unless ! $partner->rate_limits || LJ::RateLimit->check( $journal, $partner->rate_limits ); + if ( $partner->send_hits_to_ratings ) { + if ( my $entry = $partner->find_entry_by_docid($docid) ) { + push @LJ::SUP_LJ_ENTRY_REQ, + [ $journal->userid, $journal->userid, $entry->ditemid ]; + + my $entry_uri = URI->new( $entry->url ); + + my $record = LJ::AccessLogRecord->new( + 'http_hostname' => $entry_uri->host || undef, + 'http_uri' => $entry_uri->path || undef, + 'content_type' => 'text/html', + 'http_status' => 200, + 'accept' => 'text/html', + ); + + $LJ::REQ_GLOBAL{'deferred_log_records'} ||= []; + push @{ $LJ::REQ_GLOBAL{'deferred_log_records'} }, $record; + } + } + my $data = $partner->get_comments_info( $docid, { 'thread' => int ($thread / 256),