holyandrew� (holyandrew) wrote in changelog,
holyandrew�
holyandrew
changelog

[livejournal] r22499: LJINT-467: Comments for side projects (L...

Committer: akanashin
LJINT-467: Comments for side projects (Lenta.ru olympics)
U   trunk/htdocs/tools/endpoints/ctxpopup.bml
Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml	2012-07-25 16:10:48 UTC (rev 22498)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml	2012-07-26 08:27:07 UTC (rev 22499)
@@ -274,6 +274,13 @@
         }
     }
 
+    my $partner = LJ::PartnerSite->find_by_journal_username( $u->user );
+    if ($partner && $partner->overrides->{'ctxpopup'}) {
+        $ret{partner} = 1;
+    } else {
+        $ret{partner} = 0;
+    }
+
     $ret{success} = 1;
     return LJ::JSON->to_json(\%ret);
 }

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