madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r12760: LJSUP-13883: Journal pages optimizaiton ...

Committer: sbelyaev
LJSUP-13883: Journal pages optimizaiton : stage 1
U   trunk/cgi-bin/LJ/Hooks/PartnerSites.pm
Modified: trunk/cgi-bin/LJ/Hooks/PartnerSites.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/PartnerSites.pm	2012-10-15 13:08:43 UTC (rev 12759)
+++ trunk/cgi-bin/LJ/Hooks/PartnerSites.pm	2012-10-15 20:11:18 UTC (rev 12760)
@@ -14,6 +14,7 @@
     my $partner = $journal->{'__partner_journal'};
     unless ($partner) {
         $partner = LJ::PartnerSite->find_by_journal_username( $journal->username );
+        $journal->{'__partner_journal'} = $partner;
     }
 
     return unless $partner && $partner->needs_sync_comments_count;
@@ -38,6 +39,7 @@
     my $partner = $u->{'__partner_journal'};
     unless ($partner) {
         $partner = LJ::PartnerSite->find_by_journal_username( $u->username );
+        $u->{'__partner_journal'} = $partner;1
     }
 
     return unless $partner && $partner->overrides->{'userhead'};
@@ -53,6 +55,7 @@
     my $partner = $u->{'__partner_journal'};
     unless ($partner) {
         $partner = LJ::PartnerSite->find_by_journal_username( $u->username );
+        $u->{'__partner_journal'} = $partner;
     }
 
     return unless $partner && $partner->overrides->{'profile_url'};
@@ -68,6 +71,7 @@
     my $partner = $u->{'__partner_journal'};
     unless ($partner) {
         $partner = LJ::PartnerSite->find_by_journal_username( $u->username );
+        $u->{'__partner_journal'} = $partner;
     }
 
     return unless $partner && $partner->overrides->{'display_name'};
@@ -83,6 +87,7 @@
     my $partner = $u->{'__partner_journal'};
     unless ($partner) {
         $partner = LJ::PartnerSite->find_by_journal_username( $u->username );
+        $u->{'__partner_journal'} = $partner;
     }
 
     return unless $partner && $partner->overrides->{'journal_url'};
@@ -102,7 +107,9 @@
     my $partner = $u->{'__partner_journal'};
     unless ($partner) {
         $partner = LJ::PartnerSite->find_by_journal_username( $u->username );
+        $u->{'__partner_journal'} = $partner;
     }
+
     return unless $partner && $partner->overrides->{'entry_url'};
 
     my $docid = $partner->docid_from_entry($entry);
@@ -120,6 +127,7 @@
     my $partner = $u->{'__partner_journal'};
     unless ($partner) {
         $partner = LJ::PartnerSite->find_by_journal_username( $u->username );
+        $u->{'__partner_journal'} = $partner;
     }
 
     return unless $partner && $partner->overrides->{'comments_url'};
@@ -138,6 +146,7 @@
     my $partner = $u->{'__partner_journal'};
     unless ($partner) {
         $partner = LJ::PartnerSite->find_by_journal_username( $u->username );
+        $u->{'__partner_journal'} = $partner;
     }
 
     return unless $partner && $partner->overrides->{'reply_url'};
@@ -161,6 +170,7 @@
     my $partner = $u->{'__partner_journal'};
     unless ($partner) {
         $partner = LJ::PartnerSite->find_by_journal_username( $u->username );
+        $u->{'__partner_journal'} = $partner;
     }
     return unless $partner && $partner->overrides->{'s2_links'};
 
@@ -179,6 +189,7 @@
     my $partner = $u->{'__partner_journal'};
     unless ($partner) {
         $partner = LJ::PartnerSite->find_by_journal_username( $u->username );
+        $u->{'__partner_journal'} = $partner;
     }
 
     return unless $partner && $partner->overrides->{'auth_sequence'};
@@ -195,6 +206,7 @@
     my $partner = $u->{'__partner_journal'};
     unless ($partner) {
         $partner = LJ::PartnerSite->find_by_journal_username( $u->username );
+        $u->{'__partner_journal'} = $partner;
     }
 
     return unless $partner && $partner->overrides->{'extended_entry'};

Tags: ljcom, madeon, pm, sbelyaev
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