diff options
| author | 2018-06-05 09:35:22 +0200 | |
|---|---|---|
| committer | 2018-06-05 09:35:22 +0200 | |
| commit | 54217c07d5f988d3776b9dedcfc2111c4e7d9ec1 (patch) | |
| tree | 1f388ece5ebffdd4f3b3323dfcd855a922b4440c | |
| parent | f7a4499a06b91cfac333a6b497960fd60b26525a (diff) | |
| parent | d3942b2960180824d0bd5aaf66dd0b934b4fe614 (diff) | |
Merge pull request #1916 from hoilc/mastodon-with-get-method
use GET method for mastodon
| -rw-r--r-- | app/shares.php | 7 |
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~&title=~TITLE~', |
