Просмотр исходного кода

Merge pull request #1916 from hoilc/mastodon-with-get-method

use GET method for mastodon
Alexandre Alapetite 7 лет назад
Родитель
Сommit
54217c07d5
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      app/shares.php

+ 3 - 4
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~',