shithub: werc

Download patch

ref: b8db99f1fb40f48fb94f853e416b7eb680c3cd56
parent: 46f8e7215b76200d3330dd11da018f044d80c2ea
author: sl <uriel@engel.se.cat-v.org>
date: Wed Aug 5 21:09:04 EDT 2009

Do Pubsubhubbub submit in the background so we don't block.

--- a/apps/blagh/app.rc
+++ b/apps/blagh/app.rc
@@ -124,7 +124,7 @@
         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]
+            hget -d -h -p 'hub.mode=publish&hub.url='^$"p $conf_blog_pubsubdub_hub >[1=2] &
         }
     }
     status=$_status