Skip to content

Commit

Permalink
Share-buttons: remove g+/delicious, add diaspora
Browse files Browse the repository at this point in the history
  • Loading branch information
Themroc committed Aug 6, 2019
1 parent 8afb1a2 commit eea1cae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _docs/website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ <h2 id="configuration_params">Configuration</h2>
</tr>
<tr>
<td class="documentation-first-column">share</td>
<td>share defines which share buttons beneath the entry are visible. Default is share=gtfprde (g = google, f = facebook, t = twitter, p = pocket, d = delicious, w = wallabag, e = email). When you would like to show only facebook and twitter share button use share=ft.</td>
<td>share defines which share buttons beneath the entry are visible. Default is share=tfprde (f = facebook, t = twitter, p = pocket, d = diaspora, w = wallabag, e = email). When you would like to show only facebook and twitter share button use share=ft.</td>
</tr>
<tr>
<td class="documentation-first-column">wallabag</td>
Expand Down
2 changes: 1 addition & 1 deletion defaults.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ auto_mark_as_read=0
auto_collapse=0
auto_stream_more=1
anonymizer=
share=gtfpde
share=tfpde
wallabag=
wallabag_version=1
allow_public_update_access=
Expand Down
7 changes: 2 additions & 5 deletions public/js/selfoss-shares.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ selfoss.shares = {
this.enabledShares = enabledShares;
this.initialized = true;

this.register('delicious', 'd', function(url, title) {
window.open('https://delicious.com/save?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title));
});
this.register('googleplus', 'g', function(url) {
window.open('https://plus.google.com/share?url=' + encodeURIComponent(url));
this.register('diaspora', 'd', function(url, title) {
window.open('https://share.diasporafoundation.org/?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title));
});
this.register('twitter', 't', function(url, title) {
window.open('https://twitter.com/intent/tweet?source=webclient&text=' + encodeURIComponent(title) + ' ' + encodeURIComponent(url));
Expand Down

0 comments on commit eea1cae

Please sign in to comment.