X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=plugins%2Fpubsubhubbub%2Fpubsubhubbub.php;h=2878c0505be296b486ab2b9ee4547a2851c7986b;hb=7be2a2d5f4078ba97b3281f2b5c33ae9bd337be5;hp=184b588b7f44d62b89df0fc2f0e07094da0e8b41;hpb=12266213d098a53c5f005b9afcbbe62771fd580c;p=github%2Fshaarli%2FShaarli.git diff --git a/plugins/pubsubhubbub/pubsubhubbub.php b/plugins/pubsubhubbub/pubsubhubbub.php index 184b588b..2878c050 100644 --- a/plugins/pubsubhubbub/pubsubhubbub.php +++ b/plugins/pubsubhubbub/pubsubhubbub.php @@ -6,11 +6,14 @@ * PubSub is a protocol which fasten up RSS fetching: * - Every time a new link is posted, Shaarli notify the hub. * - The hub notify all feed subscribers that a new link has been posted. - * - Subscribers retrieve the new link. + * - Subscribers retrieve the new link. */ use pubsubhubbub\publisher\Publisher; use Shaarli\Config\ConfigManager; +use Shaarli\Feed\FeedBuilder; +use Shaarli\Plugin\PluginManager; +use Shaarli\Router; /** * Plugin init function - set the hub to the default appspot one. @@ -82,7 +85,8 @@ function hook_pubsubhubbub_save_link($data, $conf) * * @throws Exception An error occurred. */ -function nocurl_http_post($url, $postString) { +function nocurl_http_post($url, $postString) +{ $params = array('http' => array( 'method' => 'POST', 'content' => $postString,