Bungloo icon indicating copy to clipboard operation
Bungloo copied to clipboard

Better Plugin API

Open poweruser82 opened this issue 12 years ago • 2 comments

I'd like to have APIs plugins can use to do their stuff. Callback function (when receiving new posts, deleting, …) with access to full JSON representation of the post could be enough.

It could be a not easy feature to implement now, but would improve plugin capabilities a lot.

In the meanwhile an easier solution would be to include in each displayed post it's JSON representation so plugin like https://github.com/jeena/bungloo/wiki/Plugins#wiki-hide-posts could take actions based on informations like the post author, post type, the parent post…

poweruser82 avatar Feb 15 '13 11:02 poweruser82

The JSON implementation is already added since a couple of versions ago under li.status see: https://github.com/jeena/Bungloo/commit/084cc90321fd63bd58f8c24dd253285a69a5202f

Otherwise yeah a real plugin API would be awesome, but it will take some time before I will be able to implement it, because as always there is so much to do and so little time, and most of all the documentation and writing tests for such a API are very time consuming.

jeena avatar Feb 15 '13 13:02 jeena

Oh wow. It's not visible in the DOM. I would never find it. I updated the wiki page.

poweruser82 avatar Feb 15 '13 17:02 poweruser82