holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12850: LJINT-486: Comments for side projects (l...

Committer: akanashin
LJINT-486: Comments for side projects (letidor) - improvements_2
U   trunk/cgi-bin/LJ/PartnerSite.pm
Modified: trunk/cgi-bin/LJ/PartnerSite.pm
===================================================================
--- trunk/cgi-bin/LJ/PartnerSite.pm	2012-10-30 12:39:18 UTC (rev 12849)
+++ trunk/cgi-bin/LJ/PartnerSite.pm	2012-10-31 06:39:07 UTC (rev 12850)
@@ -378,6 +378,20 @@
         $entry = LJ::Entry->new( $self->journal,
                                  'ditemid' => $ditemid );
 
+        $self->replace_mapping( $entry, $docid );
+        
+        my $sclient = LJ::theschwartz();
+        if ($sclient) {
+            my $job = TheSchwartz::Job->new(
+                funcname    => "LJ::Worker::PartnerSite",
+                arg         => {
+                    entry_url       => $self->journal->journal_base . '/' . $entry->ditemid . '.html',
+                    external_url    => $self->article_link($docid),
+                },
+            );
+            $sclient->insert($job);
+        }
+
     } elsif ( $opts->{'nocreate'} ) {
         # database didn't find an entry for us, and we don't wish to create
         # one, so let's return undef, but first, memcache that there

Tags: akanashin, holyandrew, 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