Making Typo properly ping Technorati (and others...)

Posted by ryan
at 12:14 PM on Monday, November 28, 2005



With the trunk version of Typo you may or may not have noticed that your Technorati (or blo.gs etc…) pings aren’t getting recognized. This is because Typo doesn’t currently send the ping in the proper format. However, I just submitted this patch to the folks at typo that should remedy things.

When you add a new entry to your blog, most blogging software supports the weblogUpdates.ping ping specification that will notify blog aggregators and other services that your blog has been updated. This is done through a pretty simple SOAP call that just tells the service the blog that was updated and the root URL of the blog.

Typo seemed to support this functionality through its “settings -> General Settings -> URLs to ping automatically” section. However it was sending a POST request with a format that wasn’t quite the weblogUpdates.ping format. (Not to mention that it wasn’t a SOAP request). I noticed this and submitted this issue to the Typo guys. After sitting back and basking in my find for a day or two it dawned on me that I had every ability to fix the issue. So after toiling a bit and making a few passes, I did just that and submitted the above mentioned patch.

So why do I mention this? Because I’m egotistical and self-centered? Well, yes. But also because this announcement by scott made me a bit nervous that it might be awhile until the patch made it into the trunk and I thought a few people might want to get their posts recognized sooner by the very important ecosystem of blog aggregators and services. No knock on the Typo guys at all, just an opportunity to get the functionality in place sooner rather than later.

If you’re not up to doing the whole patch application process yourself, you can download these three files into your current Typo installation. (Make sure you’re on the most recent revision, though – 760 as of this writing)

app/models/ping.rb
app/controllers/application.rb
app/controllers/admin/content_controller.rb

Also let me know if you see a better way of doing things as I’m no Rails pro.

Comments

Leave a response

  1. Jackson MillerMay 10, 2006 @ 09:07 PM
    Thanks, that was helpful.
  2. JustinDecember 17, 2006 @ 01:48 PM
    Nice article thanks