Henry Lyne (henrylyne) wrote in changelog,
Henry Lyne
henrylyne
changelog

[livejournal] r15635: Allow hubbub discovery to be disabled.

Committer: henrylyne
Allow hubbub discovery to be disabled.

U   trunk/cgi-bin/ljfeed.pl
Modified: trunk/cgi-bin/ljfeed.pl
===================================================================
--- trunk/cgi-bin/ljfeed.pl	2009-08-25 14:12:06 UTC (rev 15634)
+++ trunk/cgi-bin/ljfeed.pl	2009-08-25 14:28:52 UTC (rev 15635)
@@ -309,8 +309,10 @@
     $ret .= "  <copyright>" . $copyright . "</copyright>\n" if $copyright;
     # TODO: add 'language' field when user.lang has more useful information
 
-    foreach my $hub (@LJ::HUBBUB_HUBS) {
-        $ret .= "  <atom10:link rel='hub' href='" . LJ::exml($hub) . "' />\n";
+    unless ($LJ::DISABLED{'hubbub_discovery'}) {
+        foreach my $hub (@LJ::HUBBUB_HUBS) {
+            $ret .= "  <atom10:link rel='hub' href='" . LJ::exml($hub) . "' />\n";
+        }
     }
 
     ### image block, returns info for their current userpic
@@ -485,8 +487,10 @@
             )
         ) if $opts->{'apilinks'};
 
-        foreach my $hub (@LJ::HUBBUB_HUBS) {
-            $feed->add_link($make_link->('hub', undef, $hub));
+        unless ($LJ::DISABLED{'hubbub_discovery'}) {
+            foreach my $hub (@LJ::HUBBUB_HUBS) {
+                $feed->add_link($make_link->('hub', undef, $hub));
+            }
         }
     }
 

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