* 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.
*
* @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,