From 07e52d794d3384b5c95758ce65d7b70791093004 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 16 Nov 2021 12:22:19 +0100 Subject: [PATCH] feat: add 'media' to allow image uploads --- controllers/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/auth.php b/controllers/auth.php index e38bc1a..deeddc9 100644 --- a/controllers/auth.php +++ b/controllers/auth.php @@ -76,7 +76,7 @@ $app->get('/auth/start', function() use($app) { $_SESSION['redirect_after_login'] = '/new'; if($tokenEndpoint && $micropubEndpoint && $authorizationEndpoint) { - $scope = 'create'; + $scope = 'create media'; $authorizationURL = IndieAuth\Client::buildAuthorizationURL($authorizationEndpoint, [ 'me' => $me, 'redirect_uri' => buildRedirectURI(),