Committer: henrylyneAllow 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 . "\n" if $copyright;
# TODO: add 'language' field when user.lang has more useful information
- foreach my $hub (@LJ::HUBBUB_HUBS) {
- $ret .= " \n";
+ unless ($LJ::DISABLED{'hubbub_discovery'}) {
+ foreach my $hub (@LJ::HUBBUB_HUBS) {
+ $ret .= " \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));
+ }
}
}