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

[livejournal] r20253: LJSUP-9882: Comments for side projects -...

Committer: gariev
LJSUP-9882: Comments for side projects - learnip
U   trunk/htdocs/talkpost_do.bml
Modified: trunk/htdocs/talkpost_do.bml
===================================================================
--- trunk/htdocs/talkpost_do.bml	2011-10-07 13:18:23 UTC (rev 20252)
+++ trunk/htdocs/talkpost_do.bml	2011-10-07 13:59:17 UTC (rev 20253)
@@ -109,9 +109,9 @@
     # various variables for the external site case
     my ( $partner, $docid, $logcom_page );
     if ( $external_site_case ) {
-        $partner
-            = LJ::PartnerSite->find_by_journal_username(
-                $journalu->username );
+        my $partner_journalname = $journalu->username;
+        $partner = LJ::PartnerSite->find_by_journal_username($partner_journalname)
+            or return "[API error: no partner for $partner_journalname]";
 
         $docid = $partner->docid_from_entry($entry);
 

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