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
This commit is contained in:
maTh authored and GitHub committed 2021-08-30 22:31:11 +02:00
1 parent 2981a7b303
commit 0a7be425f3
1 file changed
+109 -107
+109 -107
View File
@@ -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,6 +23,110 @@
*/
return array(
'blogotext' => array(
'url' => '~URL~/admin/links.php?url=~LINK~',
'transform' => array(),
'help' => 'http://lehollandaisvolant.net/blogotext/fr/',
'form' => 'advanced',
'method' => 'GET',
),
'clipboard' => array(
'url' => '~LINK~',
'transform' => array(),
'form' => 'simple',
'method' => 'GET',
),
'diaspora' => array(
'url' => '~URL~/bookmarklet?url=~LINK~&title=~TITLE~',
'transform' => array('rawurlencode'),
'help' => 'https://diasporafoundation.org/',
'form' => 'advanced',
'method' => 'GET',
),
'email' => array(
'url' => 'mailto:?subject=~TITLE~&body=~LINK~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'facebook' => array(
'url' => 'https://www.facebook.com/sharer.php?u=~LINK~&t=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'gnusocial' => array(
'url' => '~URL~/notice/new?content=~TITLE~%20~LINK~',
'transform' => array('urlencode'),
'help' => 'https://gnu.io/social/',
'form' => 'advanced',
'method' => 'GET',
),
'jdh' => array(
'url' => 'https://www.journalduhacker.net/stories/new?url=~LINK~&title=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'Known' => array(
'url' => '~URL~/share?share_url=~LINK~&share_title=~TITLE~',
'transform' => array('rawurlencode'),
'help' => 'https://withknown.com/',
'form' => 'advanced',
'method' => 'GET',
),
'lemmy' => array(
'url' => '~URL~/create_post?url=~LINK~&name=~TITLE~',
'transform' => array('rawurlencode'),
'help' => 'https://join-lemmy.org/',
'form' => 'advanced',
'method' => 'GET',
),
'linkedin' => array(
'url' => 'https://www.linkedin.com/shareArticle?url=~LINK~&title=~TITLE~&source=FreshRSS',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'mastodon' => array(
'url' => '~URL~/share?title=~TITLE~&url=~LINK~',
'transform' => array('rawurlencode'),
'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(
'url' => 'https://pinboard.in/add?next=same&url=~LINK~&title=~TITLE~',
'transform' => array('urlencode'),
'help' => 'https://pinboard.in/api/',
'form' => 'simple',
'method' => 'GET',
),
'pocket' => array(
'url' => 'https://getpocket.com/save?url=~LINK~&title=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'print' => array(
'url' => '#',
'transform' => array(),
'form' => 'simple',
'method' => 'GET',
),
'raindrop' => array(
'url' => 'https://app.raindrop.io/add?link=~LINK~&title=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'shaarli' => array(
'url' => '~URL~?post=~LINK~&title=~TITLE~&source=FreshRSS',
'transform' => array('rawurlencode'),
@@ -30,11 +134,10 @@ return array(
'form' => 'advanced',
'method' => 'GET',
),
'blogotext' => array(
'url' => '~URL~/admin/links.php?url=~LINK~',
'transform' => array(),
'help' => 'http://lehollandaisvolant.net/blogotext/fr/',
'form' => 'advanced',
'twitter' => array(
'url' => 'https://twitter.com/share?url=~LINK~&text=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'wallabag' => array(
@@ -51,105 +154,4 @@ return array(
'form' => 'advanced',
'method' => 'GET',
),
'diaspora' => array(
'url' => '~URL~/bookmarklet?url=~LINK~&title=~TITLE~',
'transform' => array('rawurlencode'),
'help' => 'https://diasporafoundation.org/',
'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~&text=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'facebook' => array(
'url' => 'https://www.facebook.com/sharer.php?u=~LINK~&t=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'email' => array(
'url' => 'mailto:?subject=~TITLE~&body=~LINK~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'print' => array(
'url' => '#',
'transform' => array(),
'form' => 'simple',
'method' => 'GET',
),
'jdh' => array(
'url' => 'https://www.journalduhacker.net/stories/new?url=~LINK~&title=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'Known' => array(
'url' => '~URL~/share?share_url=~LINK~&share_title=~TITLE~',
'transform' => array('rawurlencode'),
'help' => 'https://withknown.com/',
'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~',
'transform' => array('rawurlencode'),
'form' => 'advanced',
'method' => 'GET',
),
'pocket' => array(
'url' => 'https://getpocket.com/save?url=~LINK~&title=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'linkedin' => array(
'url' => 'https://www.linkedin.com/shareArticle?url=~LINK~&title=~TITLE~&source=FreshRSS',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
'pinboard' => array(
'url' => 'https://pinboard.in/add?next=same&url=~LINK~&title=~TITLE~',
'transform' => array('urlencode'),
'help' => 'https://pinboard.in/api/',
'form' => 'simple',
'method' => 'GET',
),
'lemmy' => array(
'url' => '~URL~/create_post?url=~LINK~&name=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'advanced',
'method' => 'GET',
),
'clipboard' => array(
'url' => '~LINK~',
'transform' => array(),
'form' => 'simple',
'method' => 'GET',
),
'raindrop' => array(
'url' => 'https://app.raindrop.io/add?link=~LINK~&title=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
'method' => 'GET',
),
);