Adding “Share to StatusNet” in Shaarli
This adds a simple "Share to StatusNet" link to your shaarli installation.
It opens a new tab/window with a pre-populated "bookmark" type of notice.

Here's the "diff -u", or the modified file. There's also a github repository here. Alternatively, read on.
In /tpl/linklist.html, add the following at the end of line ~46 (after the code for "Short link"):
46 | - <a href="#" onclick="shareSN('{$value.url}', '{$value.title}', '{$value.description}', '{$value.tags}');">Share on StatusNet</a> |
Then, add the following before </body> (line ~73):
73 74 75 76 77 78 79 80 | function shareSN(url, title, desc, tags){ var sn = "http://identi.ca/main/bookmark/new?url=" + encodeURI(url) + "&title=" + encodeURIComponent(title) + "&description=" + encodeURIComponent(desc) + "&tags=" + encodeURIComponent(tags); window.open(sn); } |
If you have your own StatusNet instance, replace "identi.ca" with your domain on line 74.

[...] genre mais en gardant la forme d’un « favori » sur le réseau social (dans le genre – en anglais -, mais sans devoir cliquer).Autoblog : autoblog.postblue.infoGrâce à la [...]
[...] sur StatusNet, dans ce genre mais en gardant la forme d’un « favori » sur le réseau social (dans le genre – en anglais -, mais sans devoir [...]