Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add a 'Share on' entry for StatusNet #213

Closed
wants to merge 2 commits into from

4 participants

@jbfavre
  • Add StatusNet icon with same layout as other share entries
  • Make it configurable, everyone can have its own StatusNet instance
  • Default goes to identi.ca
@SSilence
Owner

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
@jbfavre

"Very unknown system" ?
identi.ca 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 identi.ca/Statusnet users are free software advocates as well.

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

@seanrand

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: https://github.com/SSilence/selfoss/wiki/Maintained-feature-patches

@postblue

That patch is awesome ! Thank you @jbfavre. Besides, I don't agree with the "unknown system" for identi.ca / StatusNet. Yes, there's less people on identi.ca / 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 identi.ca
Commits on Apr 1, 2013
  1. @jbfavre
This page is out of date. Refresh to see the latest.
View
3  defaults.ini
@@ -22,4 +22,5 @@ rss_mark_as_read=0
homepage=newest
language=0
auto_mark_as_read=0
-anonymizer=
+anonymizer=
+share_sn_url=https://identi.ca
View
4 public/css/style.css
@@ -541,6 +541,10 @@ input {
background-image:url(images/pocket.png);
}
+ .entry-statusnet {
+ background-image:url(images/statusnet.png);
+ }
+
.entry-smartphone-share li.entry-shareemail,
.entry-toolbar li.entry-shareemail {
background-image:url(images/mail.png);
View
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.
View
9 public/js/selfoss-events-entriestoolbar.js
@@ -60,6 +60,13 @@ selfoss.events.entriesToolbar = function(parent) {
e.preventDefault();
return false;
});
+
+ // share with StatusNet
+ parent.find('.entry-statusnet').unbind('click').click(function(e) {
+ window.open(" "+(share_sn_url?share_sn_url:"https://identi.ca")+"/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 @@ selfoss.events.entriesToolbar = function(parent) {
return false;
});
}
-};
+};
View
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>
</ul>
</div>
@@ -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>
</ul>
</div>
Something went wrong with that request. Please try again.