From 7c595c60f373bc65491368feb9a72a6ea187f528 Mon Sep 17 00:00:00 2001 From: Matt Domsch Date: Tue, 15 Jun 2010 12:26:15 -0500 Subject: [PATCH] add PuSH link to atom.xml --- planet/splice.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/planet/splice.py b/planet/splice.py index 77a6908..b399eca 100644 --- a/planet/splice.py +++ b/planet/splice.py @@ -44,6 +44,12 @@ def splice(): link.setAttribute('type', "application/%s+xml" % config.feedtype()) feed.appendChild(link) + if config.pubsubhubbub_hub(): + hub = doc.createElement('link') + hub.setAttribute('rel', 'hub') + hub.setAttribute('href', config.pubsubhubbub_hub()) + feed.appendChild(hub) + if config.link(): link = doc.createElement('link') link.setAttribute('rel', 'alternate')