Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Add a 'Share on' entry for StatusNet #213

wants to merge 2 commits into from

4 participants

  • Add StatusNet icon with same layout as other share entries
  • Make it configurable, everyone can have its own StatusNet instance
  • Default goes to

StatusNet seems to be a very unknown system. I didn't know it before. I will not add to much elements in the ui and think the biggest social networks are enough. Hmm, soon we need a plugin system ;)

@SSilence SSilence closed this

"Very unknown system" ? is a more than 100k active users platform.
I know many people operating their own StatusNet instance, some of them also using Selfoss (don't have figures though).
Most users are free software advocates as well.

Anyway, will maintain & keep that patch public. Could help some folks outthere


In the meantime, I created a wiki page to keep track of all the patches to Selfoss that didn't make it into upstream but which will hopefully be kept up-to-date anyway:


That patch is awesome ! Thank you @jbfavre. Besides, I don't agree with the "unknown system" for / StatusNet. Yes, there's less people on / statusnet than on Twitter or Facebook, but most of them are geeks, nerds and techies that can configure a webserver. So they'd be, I think, most of the users of Selfoss.

Merging this patch on my branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 31, 2013
  1. @jbfavre

    Add a 'Share on' entry for StatusNet. Make it configurable, everyone …

    jbfavre authored
    …can have its own StatusNet instance, with default to
Commits on Apr 1, 2013
  1. @jbfavre
This page is out of date. Refresh to see the latest.
3  defaults.ini
@@ -22,4 +22,5 @@ rss_mark_as_read=0
4 public/css/style.css
@@ -541,6 +541,10 @@ input {
+ .entry-statusnet {
+ background-image:url(images/statusnet.png);
+ }
.entry-smartphone-share li.entry-shareemail,
.entry-toolbar li.entry-shareemail {
BIN  public/images/statusnet.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 public/js/selfoss-events-entriestoolbar.js
@@ -60,6 +60,13 @@ = function(parent) {
return false;
+ // share with StatusNet
+ parent.find('.entry-statusnet').unbind('click').click(function(e) {
+" "+(share_sn_url?share_sn_url:"")+"/index.php?action=newnotice&status_textarea="+encodeURIComponent($(this).parents(".entry").children(".entry-title").html())+" "+encodeURIComponent($(this).parents(".entry").children("a").eq(0).attr("href")));
+ e.preventDefault();
+ return false;
+ });
// only loggedin users
if($('body').hasClass('loggedin')==true) {
@@ -194,4 +201,4 @@ = function(parent) {
return false;
2  templates/item.phtml
@@ -59,6 +59,7 @@
<li class="entry-sharefacebook" title="facebook">facebook</li>
<li class="entry-sharepocket" title="pocket">pocket</li>
<li class="entry-shareemail" title="email">email</li>
+ <li class="entry-statusnet" title="statusnet">StatusNet</li>
@@ -73,6 +74,7 @@
<li class="entry-sharefacebook entry-share" title="facebook">&nbsp;</li>
<li class="entry-sharepocket entry-share" title="pocket">&nbsp;</li>
<li class="entry-shareemail entry-share" title="email">&nbsp;</li>
+ <li class="entry-statusnet entry-share" title="statusnet">&nbsp;</li>
<li class="entry-close"></li>
Something went wrong with that request. Please try again.