aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2021-08-30 22:31:11 +0200
committerGravatar GitHub <noreply@github.com> 2021-08-30 22:31:11 +0200
commit0a7be425f3e2e9667e98f5285fd41b1d720a0eb1 (patch)
tree4f1cfcbe18165a804917313f6a65edcccc748511 /app
parent2981a7b303b0114147378b91ec3d931ec05028f3 (diff)
fix broken sharing services (#3794)
* changed the help link of movim from github to official website * fixed missed help link of lemmy * fixed missed link of mastodon * reorder the share services - now ordered by alphabet * extended the comments
Diffstat (limited to 'app')
-rw-r--r--app/shares.php118
1 files changed, 60 insertions, 58 deletions
diff --git a/app/shares.php b/app/shares.php
index f29bcd69a..474fecc25 100644
--- a/app/shares.php
+++ b/app/shares.php
@@ -15,7 +15,7 @@
* ~ID~ placeholder represents the id of the shared article (only useful
* for internal use)
* - transform is an array of transformation to apply on links and titles
- * - help is a URL to a help page
+ * - help is a URL to a help page (mandatory for form = 'advanced')
* - form is the type of form to display during configuration. It's either
* 'simple' or 'advanced'. 'simple' is used when only the name is configurable,
* 'advanced' is used when the name and the location are configurable.
@@ -23,13 +23,6 @@
*/
return array(
- 'shaarli' => array(
- 'url' => '~URL~?post=~LINK~&amp;title=~TITLE~&amp;source=FreshRSS',
- 'transform' => array('rawurlencode'),
- 'help' => 'http://sebsauvage.net/wiki/doku.php?id=php:shaarli',
- 'form' => 'advanced',
- 'method' => 'GET',
- ),
'blogotext' => array(
'url' => '~URL~/admin/links.php?url=~LINK~',
'transform' => array(),
@@ -37,18 +30,10 @@ return array(
'form' => 'advanced',
'method' => 'GET',
),
- 'wallabag' => array(
- 'url' => '~URL~?action=add&amp;url=~LINK~',
- 'transform' => array('rawurlencode'),
- 'help' => 'http://www.wallabag.org/',
- 'form' => 'advanced',
- 'method' => 'GET',
- ),
- 'wallabagv2' => array(
- 'url' => '~URL~/bookmarklet?url=~LINK~',
- 'transform' => array('rawurlencode'),
- 'help' => 'http://www.wallabag.org/',
- 'form' => 'advanced',
+ 'clipboard' => array(
+ 'url' => '~LINK~',
+ 'transform' => array(),
+ 'form' => 'simple',
'method' => 'GET',
),
'diaspora' => array(
@@ -58,15 +43,8 @@ return array(
'form' => 'advanced',
'method' => 'GET',
),
- 'movim' => array(
- 'url' => '~URL~/?share/~LINK~',
- 'transform' => array('urlencode'),
- 'help' => 'https://github.com/edhelas/movim',
- 'form' => 'advanced',
- 'method' => 'GET',
- ),
- 'twitter' => array(
- 'url' => 'https://twitter.com/share?url=~LINK~&amp;text=~TITLE~',
+ 'email' => array(
+ 'url' => 'mailto:?subject=~TITLE~&amp;body=~LINK~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
@@ -77,16 +55,11 @@ return array(
'form' => 'simple',
'method' => 'GET',
),
- 'email' => array(
- 'url' => 'mailto:?subject=~TITLE~&amp;body=~LINK~',
- 'transform' => array('rawurlencode'),
- 'form' => 'simple',
- 'method' => 'GET',
- ),
- 'print' => array(
- 'url' => '#',
- 'transform' => array(),
- 'form' => 'simple',
+ 'gnusocial' => array(
+ 'url' => '~URL~/notice/new?content=~TITLE~%20~LINK~',
+ 'transform' => array('urlencode'),
+ 'help' => 'https://gnu.io/social/',
+ 'form' => 'advanced',
'method' => 'GET',
),
'jdh' => array(
@@ -102,29 +75,31 @@ return array(
'form' => 'advanced',
'method' => 'GET',
),
- 'gnusocial' => array(
- 'url' => '~URL~/notice/new?content=~TITLE~%20~LINK~',
- 'transform' => array('urlencode'),
- 'help' => 'https://gnu.io/social/',
- 'form' => 'advanced',
- 'method' => 'GET',
- ),
- 'mastodon' => array(
- 'url' => '~URL~/share?title=~TITLE~&url=~LINK~',
+ 'lemmy' => array(
+ 'url' => '~URL~/create_post?url=~LINK~&name=~TITLE~',
'transform' => array('rawurlencode'),
+ 'help' => 'https://join-lemmy.org/',
'form' => 'advanced',
'method' => 'GET',
),
- 'pocket' => array(
- 'url' => 'https://getpocket.com/save?url=~LINK~&amp;title=~TITLE~',
+ 'linkedin' => array(
+ 'url' => 'https://www.linkedin.com/shareArticle?url=~LINK~&amp;title=~TITLE~&amp;source=FreshRSS',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
- 'linkedin' => array(
- 'url' => 'https://www.linkedin.com/shareArticle?url=~LINK~&amp;title=~TITLE~&amp;source=FreshRSS',
+ 'mastodon' => array(
+ 'url' => '~URL~/share?title=~TITLE~&url=~LINK~',
'transform' => array('rawurlencode'),
- 'form' => 'simple',
+ 'help' => 'https://joinmastodon.org/',
+ 'form' => 'advanced',
+ 'method' => 'GET',
+ ),
+ 'movim' => array(
+ 'url' => '~URL~/?share/~LINK~',
+ 'transform' => array('urlencode'),
+ 'help' => 'https://movim.eu/',
+ 'form' => 'advanced',
'method' => 'GET',
),
'pinboard' => array(
@@ -134,14 +109,14 @@ return array(
'form' => 'simple',
'method' => 'GET',
),
- 'lemmy' => array(
- 'url' => '~URL~/create_post?url=~LINK~&name=~TITLE~',
+ 'pocket' => array(
+ 'url' => 'https://getpocket.com/save?url=~LINK~&amp;title=~TITLE~',
'transform' => array('rawurlencode'),
- 'form' => 'advanced',
+ 'form' => 'simple',
'method' => 'GET',
),
- 'clipboard' => array(
- 'url' => '~LINK~',
+ 'print' => array(
+ 'url' => '#',
'transform' => array(),
'form' => 'simple',
'method' => 'GET',
@@ -152,4 +127,31 @@ return array(
'form' => 'simple',
'method' => 'GET',
),
+ 'shaarli' => array(
+ 'url' => '~URL~?post=~LINK~&amp;title=~TITLE~&amp;source=FreshRSS',
+ 'transform' => array('rawurlencode'),
+ 'help' => 'http://sebsauvage.net/wiki/doku.php?id=php:shaarli',
+ 'form' => 'advanced',
+ 'method' => 'GET',
+ ),
+ 'twitter' => array(
+ 'url' => 'https://twitter.com/share?url=~LINK~&amp;text=~TITLE~',
+ 'transform' => array('rawurlencode'),
+ 'form' => 'simple',
+ 'method' => 'GET',
+ ),
+ 'wallabag' => array(
+ 'url' => '~URL~?action=add&amp;url=~LINK~',
+ 'transform' => array('rawurlencode'),
+ 'help' => 'http://www.wallabag.org/',
+ 'form' => 'advanced',
+ 'method' => 'GET',
+ ),
+ 'wallabagv2' => array(
+ 'url' => '~URL~/bookmarklet?url=~LINK~',
+ 'transform' => array('rawurlencode'),
+ 'help' => 'http://www.wallabag.org/',
+ 'form' => 'advanced',
+ 'method' => 'GET',
+ ),
);