summaryrefslogtreecommitdiff
path: root/data/shares.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-12-17 20:28:04 +0100
committerGravatar GitHub <noreply@github.com> 2017-12-17 20:28:04 +0100
commit60f56539c3f30fd3f7ba4f2a3570f7029ac93e5f (patch)
tree1e78bfac7042dceb63898e2215db8fb0c1d7745d /data/shares.php
parentceda55c75b158fc1cf4813fe0f258527754b9289 (diff)
parent0b1516af91792f86868689392f72ad4b6e32cdcf (diff)
Merge pull request #1720 from FreshRSS/dev
FreshRSS 1.9.0
Diffstat (limited to 'data/shares.php')
-rw-r--r--data/shares.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/data/shares.php b/data/shares.php
index d73ae3826..5403fd48c 100644
--- a/data/shares.php
+++ b/data/shares.php
@@ -14,6 +14,10 @@
* The ~TITLE~ placeholder represents the title of the shared article.
* - transform is an array of transformation to apply on links and titles
* - help is a URL to a help page
+ * - 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.
+ * - method is the HTTP method (POST or GET) used to share a link.
*/
return array(
@@ -22,12 +26,14 @@ return array(
'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(),
'help' => 'http://lehollandaisvolant.net/blogotext/fr/',
'form' => 'advanced',
+ 'method' => 'GET',
),
'wallabag' => array(
'url' => '~URL~?action=add&amp;url=~LINK~',
@@ -37,6 +43,7 @@ return array(
),
'help' => 'http://www.wallabag.org/',
'form' => 'advanced',
+ 'method' => 'GET',
),
'wallabagv2' => array(
'url' => '~URL~/bookmarklet?url=~LINK~',
@@ -46,59 +53,77 @@ return array(
),
'help' => 'http://www.wallabag.org/',
'form' => 'advanced',
+ 'method' => 'GET',
),
'diaspora' => array(
'url' => '~URL~/bookmarklet?url=~LINK~&amp;title=~TITLE~',
'transform' => array('rawurlencode'),
'help' => 'https://diasporafoundation.org/',
'form' => 'advanced',
+ 'method' => 'GET',
),
'movim' => array(
'url' => '~URL~/?share/~LINK~',
'transform' => array('rawurlencode', 'urlencode'),
'help' => 'https://github.com/edhelas/movim',
'form' => 'advanced',
+ 'method' => 'GET',
),
'twitter' => array(
'url' => 'https://twitter.com/share?url=~LINK~&amp;text=~TITLE~',
'transform' => array('rawurlencode'),
'form' => 'simple',
+ 'method' => 'GET',
),
'g+' => array(
'url' => 'https://plus.google.com/share?url=~LINK~',
'transform' => array('rawurlencode'),
'form' => 'simple',
+ 'method' => 'GET',
),
'facebook' => array(
'url' => 'https://www.facebook.com/sharer.php?u=~LINK~&amp;t=~TITLE~',
'transform' => array('rawurlencode'),
'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',
+ '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~/api/v1/statuses',
+ 'transform' => array(),
+ 'form' => 'advanced',
+ 'method' => 'POST',
+ 'field' => 'status',
),
);