Experimental support for Google's pubsubhubbub
This commit is contained in:
		
							parent
							
								
									16799d8ca0
								
							
						
					
					
						commit
						df5668add0
					
				
					 2 changed files with 10 additions and 0 deletions
				
			
		|  | @ -119,6 +119,12 @@ fn mkbpost { | ||||||
|             echo  |             echo  | ||||||
|             echo $bptext |             echo $bptext | ||||||
|         }> $ddir/$"n^$"bpid/index.md  |         }> $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 | ||||||
|  |         } | ||||||
|     } |     } | ||||||
|     status=$_status |     status=$_status | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -22,6 +22,10 @@ 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 '') { | ||||||
|  | %    echo '<link rel="hub" href="'$blagh_pubsubdub_hub'" />' | ||||||
|  | % } | ||||||
|  | 
 | ||||||
|     <link rel="self" href="%($base_url^$req_path%)"/> |     <link rel="self" href="%($base_url^$req_path%)"/> | ||||||
|     <id>%($base_url^$req_path%)</id> |     <id>%($base_url^$req_path%)</id> | ||||||
|     <icon>/favicon.ico</icon> |     <icon>/favicon.ico</icon> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Uriel
						Uriel