Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r11205: LJINT-454: Comments for side projects (g...

Committer: gariev
LJINT-454: Comments for side projects (global) - stage 2
U   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 );

Tags: gariev, ljcom, 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