ref: 8f38d065ea7faa6e54a6590a76c5136d78173864
parent: 90186dc24eaf17b8f20f650a9c8ec097d1e30828
author: sl <uriel@engel.se.cat-v.org>
date: Mon Jul 20 00:01:36 EDT 2009
Further work on pubsubhub support. I think we now have all we are supposed to, but I'm not sure it works yet.
--- a/apps/blagh/app.rc
+++ b/apps/blagh/app.rc
@@ -120,10 +120,11 @@
echo $bptext
}> $ddir/$"n^$"bpid/index.md
- if(! ~ $"blagh_pubsubdub_hub '') {
- # Experimental implementation of http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.1.html#anchor4
- ifs='' { p=`{echo $req_url|sed 's/new_post$/index.atom/'|./bin/contrib/urlencode.awk }
- hget -p 'hub.mode=publish&hub.url='^$p' $blagh_pubsubdub_hub
+ # Experimental support for http://pubsubhubbub.googlecode.com/
+ if(! ~ $"conf_blog_pubsubdub_hub '') {
+ ifs='' { p=`{echo $req_url|sed 's/new_post$/index.atom/'|url_encode } }
+ dprint hget -p 'hub.mode=publish&hub.url='^$"p $conf_blog_pubsubdub_hub
+ hget -d -h -p 'hub.mode=publish&hub.url='^$"p $conf_blog_pubsubdub_hub >[1=2]
}
}
status=$_status
--- a/apps/blagh/atom.tpl
+++ b/apps/blagh/atom.tpl
@@ -22,8 +22,8 @@
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:thr="http://purl.org/syndication/thread/1.0">
-% if(! ~ $"blagh_pubsubdub_hub '') {
-% echo '<link rel="hub" href="'$blagh_pubsubdub_hub'" />'
+% if(! ~ $"conf_blog_pubsubdub_hub '') {
+% echo '<link rel="hub" href="'$conf_blog_pubsubdub_hub'" />'
% }
<link rel="self" href="%($base_url^$req_path%)"/>