[planet-web] add PuSH (PubSubHubbub) support, via Google's hub (other admins could add the same changes to their
- From: Jeff Waugh <jdub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planet-web] add PuSH (PubSubHubbub) support, via Google's hub (other admins could add the same changes to their
- Date: Wed, 16 Jun 2010 23:34:07 +0000 (UTC)
commit 8357d46cb47f756a1667fc4232e0065e9790ffb6
Author: jdub <jdub bethesignal org>
Date: Thu Jun 17 09:32:19 2010 +1000
add PuSH (PubSubHubbub) support, via Google's hub (other admins could add the same changes to their config/theme)
config/people/config.ini | 2 ++
themes/gnome/rss20.xml.tmpl | 8 +++++++-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/config/people/config.ini b/config/people/config.ini
index caed5fe..3bd614d 100644
--- a/config/people/config.ini
+++ b/config/people/config.ini
@@ -22,6 +22,8 @@ activity_threshold = 60
future_dates = ignore_date
ignore_in_feed = updated
+pubsubhubbub_hub = http://pubsubhubbub.appspot.com/
+
#template_files = index.html.tmpl simple.html.tmpl sidebar.html.tmpl cse.xml.tmpl ../atom.xml.tmpl ../foafroll.xml.tmpl ../opml.xml.tmpl ../rss10.xml.tmpl ../rss20.xml.tmpl
[http://www.nat.org/rss.xml]
diff --git a/themes/gnome/rss20.xml.tmpl b/themes/gnome/rss20.xml.tmpl
index 7fd4908..22b9dae 100644
--- a/themes/gnome/rss20.xml.tmpl
+++ b/themes/gnome/rss20.xml.tmpl
@@ -1,11 +1,17 @@
<?xml version="1.0"?>
-<rss version="2.0">
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><TMPL_VAR name></title>
<link><TMPL_VAR link ESCAPE="HTML"></link>
<language>en</language>
<description><TMPL_VAR name ESCAPE="HTML"> - <TMPL_VAR link ESCAPE="HTML"></description>
+ <TMPL_IF pubsubhubbub_hub>
+ <atom:link rel="hub" href="<TMPL_VAR pubsubhubbub_hub ESCAPE="HTML">"/>
+ </TMPL_IF>
+ <TMPL_IF fullurl>
+ <atom:link rel="self" href="<TMPL_VAR fullurl ESCAPE="HTML">" type="application/rss+xml"/>
+ </TMPL_IF>
<TMPL_LOOP Items>
<item>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]