Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r12390: LJSUP-13167 (change link_pattern for the...

Committer: ailyin
LJSUP-13167 (change link_pattern for the lenta.ru olympics comments widget)
U   trunk/cgi-bin/LJ/PartnerSite.pm
Modified: trunk/cgi-bin/LJ/PartnerSite.pm
===================================================================
--- trunk/cgi-bin/LJ/PartnerSite.pm	2012-08-01 11:50:20 UTC (rev 12389)
+++ trunk/cgi-bin/LJ/PartnerSite.pm	2012-08-01 12:42:03 UTC (rev 12390)
@@ -428,10 +428,15 @@
         
         my $sclient = LJ::theschwartz();
         if ($sclient) {
+            # hack: $entry->url doesn't return the 'internal' url so we have
+            # to construct it ourselves here
+            my $entry_url = $self->journal->journal_base .
+                '/' . $entry->ditemid . '.html';
+
             my $job = TheSchwartz::Job->new(
                 funcname    => "LJ::Worker::PartnerSite",
                 arg         => {
-                    entry_url       => $entry->url,
+                    entry_url       => $entry_url,
                     external_url    => $link,
                 },
             );

Tags: ailyin, andy, 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