Page 2 of 2

Re: pubsubhubbub

Posted: Sun Nov 28, 2010 10:37 pm
by onli
No, there is nothing yet. It didnt work in the past and as you can see, i didn't receive that much help ;)

Wanted to try it again with the current ubuntu-version...

Re: pubsubhubbub

Posted: Tue Nov 30, 2010 12:16 pm
by blog.brockha.us
What kind of help do you need?

Re: pubsubhubbub

Posted: Tue Nov 30, 2010 11:02 pm
by onli
I got stuck at the point of the plugin sending to the hub, but getting no reaction from him. So someone testing the plugin with a testinstallation and a local hub (one probably need to get into the code for that to set the hub to localhost) - and i should do the same.

Re: pubsubhubbub

Posted: Sun Mar 31, 2013 10:37 pm
by onli
For the future: The plugin never worked and I abandoned it. But I just build a pubsubhubbub-subscriber in ruby for another project of mine, and after some fighting to get proper debug-output, that one seems to be working fine so far. By comparing that code with the plugin in this thread i notice that there is an error:

Code: Select all

foreach ($topic_urls as $topic_url) {
    // lightweight check that we're actually working w/ a valid url
    if (!preg_match("|^https?://|i",$topic_url)) 
        throw new Exception('The specified topic url does not appear to be valid: '.$topic_url);
    $post_string .= "&hub.url=".urlencode($topic_url);
}
This is wrong, because the topic-url (the url of the updated feed) has to be the value of the parameter hub.topic, not hub.url.

Possible that the specification changed by now, but the specification lists no change since the time i wrote that plugin. It is quite possible that the plugin could work by simply exchanging hub.url with hub.topic at that line. If someone wants to test that, be my guest.

I'll try to revisit the plugin at a later time, if i find the time. I'm quite confident i'd now be able to get it working.