Committer: gariev
LJINT-454: Comments for side projects (global) - stage 2U trunk/cgi-bin/LJ/PartnerSite.pm
Modified: trunk/cgi-bin/LJ/PartnerSite.pm =================================================================== --- trunk/cgi-bin/LJ/PartnerSite.pm 2011-11-23 15:37:30 UTC (rev 11204) +++ trunk/cgi-bin/LJ/PartnerSite.pm 2011-11-23 15:42:57 UTC (rev 11205) @@ -406,6 +406,18 @@ 'jitemid' => $protocol_res->{'itemid'} ); $self->insert_mapping( $entry, $docid ); + + my $sclient = LJ::theschwartz(); + if ($sclient) { + my $job = TheSchwartz::Job->new( + funcname => "LJ::Worker::PartnerSite", + arg => { + entry_url => $entry->url, + external_url => $link, + }, + ); + $sclient->insert($job); + } } LJ::MemCache::set( $memc_key, $entry->jitemid );