aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-06-05 09:35:22 +0200
committerGravatar GitHub <noreply@github.com> 2018-06-05 09:35:22 +0200
commit54217c07d5f988d3776b9dedcfc2111c4e7d9ec1 (patch)
tree1f388ece5ebffdd4f3b3323dfcd855a922b4440c
parentf7a4499a06b91cfac333a6b497960fd60b26525a (diff)
parentd3942b2960180824d0bd5aaf66dd0b934b4fe614 (diff)
Merge pull request #1916 from hoilc/mastodon-with-get-method
use GET method for mastodon
-rw-r--r--app/shares.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/shares.php b/app/shares.php
index cd09aa19c..8c6b4eac6 100644
--- a/app/shares.php
+++ b/app/shares.php
@@ -120,11 +120,10 @@ return array(
'method' => 'GET',
),
'mastodon' => array(
- 'url' => '~URL~/api/v1/statuses',
- 'transform' => array(),
+ 'url' => '~URL~/share?title=~TITLE~&url=~LINK~',
+ 'transform' => array('rawurlencode'),
'form' => 'advanced',
- 'method' => 'POST',
- 'field' => 'status',
+ 'method' => 'GET',
),
'pocket' => array(
'url' => 'https://getpocket.com/save?url=~LINK~&amp;title=~TITLE~',