summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar hoilc <fyxyzhc@qq.com> 2018-06-04 11:15:20 +0800
committerGravatar hoilc <fyxyzhc@qq.com> 2018-06-04 11:15:20 +0800
commitd3942b2960180824d0bd5aaf66dd0b934b4fe614 (patch)
tree1f388ece5ebffdd4f3b3323dfcd855a922b4440c
parentf7a4499a06b91cfac333a6b497960fd60b26525a (diff)
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~',