Further work on pubsubhub support. I think we now have all we are supposed to, but I'm not sure it works yet.
This commit is contained in:
parent
8f76833a08
commit
904c11dbb4
@ -120,10 +120,11 @@ fn mkbpost {
|
|||||||
echo $bptext
|
echo $bptext
|
||||||
}> $ddir/$"n^$"bpid/index.md
|
}> $ddir/$"n^$"bpid/index.md
|
||||||
|
|
||||||
if(! ~ $"blagh_pubsubdub_hub '') {
|
# Experimental support for http://pubsubhubbub.googlecode.com/
|
||||||
# Experimental implementation of http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.1.html#anchor4
|
if(! ~ $"conf_blog_pubsubdub_hub '') {
|
||||||
ifs='' { p=`{echo $req_url|sed 's/new_post$/index.atom/'|./bin/contrib/urlencode.awk }
|
ifs='' { p=`{echo $req_url|sed 's/new_post$/index.atom/'|url_encode } }
|
||||||
hget -p 'hub.mode=publish&hub.url='^$p' $blagh_pubsubdub_hub
|
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
|
status=$_status
|
||||||
|
@ -22,8 +22,8 @@ updated = `{/bin/date --rfc-3339'=seconds' |sed 's/ /T/'}
|
|||||||
<feed xmlns="http://www.w3.org/2005/Atom"
|
<feed xmlns="http://www.w3.org/2005/Atom"
|
||||||
xmlns:thr="http://purl.org/syndication/thread/1.0">
|
xmlns:thr="http://purl.org/syndication/thread/1.0">
|
||||||
|
|
||||||
% if(! ~ $"blagh_pubsubdub_hub '') {
|
% if(! ~ $"conf_blog_pubsubdub_hub '') {
|
||||||
% echo '<link rel="hub" href="'$blagh_pubsubdub_hub'" />'
|
% echo '<link rel="hub" href="'$conf_blog_pubsubdub_hub'" />'
|
||||||
% }
|
% }
|
||||||
|
|
||||||
<link rel="self" href="%($base_url^$req_path%)"/>
|
<link rel="self" href="%($base_url^$req_path%)"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user