Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharing buttons update #1121

Merged
merged 2 commits into from
Aug 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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=tfpde (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
Binary file removed public/images/delicious.png
Binary file not shown.
Binary file added public/images/diaspora.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/googleplus.png
Binary file not shown.
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