Laconica plugin for Habari

2009-01-18 16:28

UPDATED - 2009-09-07 - The plugin is (like the software it targets) now known as the StatusNet plugin, and has moved to http://trac.habariproject.org/habari-extras/browser/plugins/statusnet.

If you’re a user of both the Habari blogging software and one of the many Laconica-based microblogging services (identi.ca being the most popular), you might like the laconica plugin I checked in yesterday. It’s a mere modification of the existing Habari Twitter plugin, but works against any user-entered Laconica server. The plugin provides a simple mechanism for a theme to display notices (or “dents”) from a Laconica service, as well as optionally posting to the service the title of and a link to each of your new blog posts.

As the Laconica “native” API is currently only a set of proposals, the plugin uses the Twitter-compatible API through a version of the code from the Twitter plugin. Thus, Laconica support could have been implemented as a modification to the Twitter plugin. However, that would curse the Twitter plugin with configuration code it doesn’t need, and the amount of that un-shared code would grow as the native Laconica API is adopted. The laconica plugin could extend the Twitter class, but that would saddle the user with installing both plugins just to use one. Since the plugin should follow the Laconica API as it develops, and abandon the Twitter-compatibility code, a separate Laconica plugin seemed to make the most sense.

Thanks to AndyC for the basic idea and testing, and to the author(s) of the Twitter plugin who did the existing work. I did the typing.

Enjoy!

3 Comments on Laconica plugin for Habari

  1. Fantastic. Thanks for a wonderful plugin. Hope this will encourage some more Habari folk to investigate laconi.ca and identi.ca.

    Also agree with your decision to create wholly separate plugin (from the Twitter code).

    Up the federation.

  2. this seems cool, i will try it soon!

  3. The former Laconica plugin is now known as the StatusNet plugin (http://trac.habariproject.org/habari-extras/browser/plugins/statusnet), following the name change of the primary target µblog software/service(s).

    The theme call for displaying µblog notices changes to
    $theme->statusnet()
    as well.

    The configuration panel was updated for clarity.

About You
Comment



Pages

Syndicate (Atom)

Small Talk

at identi.ca
  • Deficit? I propose we sell Texas. To some nice middle-eastern theocracy that shares their values. Also: Fuck you, Texas. @ Sat Mar 13 03:41:13 +0000 2010