]> git.wh0rd.org Git - tt-rss.git/commitdiff
generate_syndicated_feed: only enable pubsub hub for published feed
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 4 Apr 2011 09:42:14 +0000 (13:42 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 4 Apr 2011 09:42:14 +0000 (13:42 +0400)
functions.php

index 67edc5789b785666824c6b9a6052a21b1f2abd5c..3ed2a1966fb8925a2a20e52b62455daf5eca32f1 100644 (file)
                $tpl->setVariable('VERSION', VERSION);
                $tpl->setVariable('FEED_URL', htmlspecialchars($feed_self_url));
 
-               if (PUBSUBHUBBUB_HUB) {
+               if (PUBSUBHUBBUB_HUB && $feed == -2) {
                        $tpl->setVariable('HUB_URL', htmlspecialchars(PUBSUBHUBBUB_HUB));
                        $tpl->addBlock('feed_hub');
                }