Bug in Laconica Tools

I spotted a bug in my code this morning, in the WordPress plugin that I maintain, Laconica Tools. There is a syslog call on line 80 of laconica-tools.php that is incorrect. If you see a complaint on saving an already published post in WordPress with the plugin installed and active on that line of the plugin, don’t worry. The bug does not interfere with saving changes and only affects saves after a post is published. I have committed and tested a fix and will be releasing it shortly.

I have had a request to make the message status template configurable, like Twitter Tools does. I was planning on coding that, anyway, and will roll the fix in with the feature later in the week with a new release. I’ll post here when that release is available.

Technorati Tags: , , ,

9 Replies to “Bug in Laconica Tools”

  1. The bug is not in Laconi.ca itself. It is in the WordPress plugin that I maintain, Laconica Tools. That’s why I mention a forthcoming update. I’ve edited the post to clarify for someone reading the post as a result of a random page visit.

  2. So does/will Laconica Tools send another ‘dent out if you save an already published post?

    If so… is there a way for it to distinguish a new post from an updated one when it sends the message out?

    (Not that I’m trying to make more work for ya… but never know unless ya ask, right?)

  3. Right now, it only sends a status message to Laconi.ca when the post is first published. At that time, it adds a value to the post’s metadata so if you save the published post, it sees it already sent it and does not do so again.

    I could certainly enhance it in the future to send status messages to notify a published post has changed. I could see making that configurable, too. It seems a bit complex, though, both in the configuration and the use. Most similar tools seem to follow the same behavior, send on first publish, then ignore any subsequent changes so that seemed like the most consistent and predictable behavior for Laconica Tools.

  4. “send on first publish, then ignore any subsequent changes so that seemed like the most consistent and predictable behavior for Laconica Tools.”

    That works for me… something like that probably falls under one of those items that sounds good in theory, but probably would be never needed in practice.

  5. hmmm.. fyi… I edited a couple posts on my blog, added them to additional categories. Laconica Tools posted them to identi.ca as if they were new posts.

  6. I will make a note of that and try to reproduce. I can say that the only times I have saved published posts I have only altered the post contents, not changed categories. There may be an issue with WordPress where doing so resets the post options data that I am using to track the state of the post.

    Just to confirm, if you do not add or change categories, the plugin works as advertised, not repeating itself?

  7. In these two instances, I added them to an additional category, so maybe that’s what triggered WP treating them as new.

    Not sure if it’s something you want to bother checking for… or just leave as is.

Leave a Reply

Your email address will not be published. Required fields are marked *