mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 00:33:40 +00:00
Merge pull request 'Tumblr: Use the UUID to address the blog' (#1367) from heluecht/friendica-addons:tumblr-blog into 2023.03-rc
Reviewed-on: https://git.friendi.ca/friendica/friendica-addons/pulls/1367
This commit is contained in:
commit
91bb323a16
1 changed files with 1 additions and 4 deletions
|
@ -25,7 +25,6 @@ use Friendica\Util\Network;
|
|||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Exception\RequestException;
|
||||
use GuzzleHttp\HandlerStack;
|
||||
use GuzzleHttp\Psr7\Uri as Uri;
|
||||
use GuzzleHttp\Subscriber\Oauth\Oauth1;
|
||||
|
||||
function tumblr_install()
|
||||
|
@ -229,9 +228,7 @@ function tumblr_settings(array &$data)
|
|||
$userinfo = tumblr_get($connection, 'user/info');
|
||||
if (!empty($userinfo['success'])) {
|
||||
foreach ($userinfo['data']->response->user->blogs as $blog) {
|
||||
$uri = new Uri($blog->url);
|
||||
$url = trim($uri->getHost() . $uri->getPath(), '/');
|
||||
$blogs[$url] = $url;
|
||||
$blogs[$blog->uuid] = $blog->name;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue