planiverse

A minimalist, no-JS front-end for Mastodon.
git clone https://git.stjo.hn/planiverse
Log | Files | Refs | README | LICENSE

commit 73d0123d69306a150e4f0df5002296028d630fd2
parent b03b3ec100d7e544848d9a7af7e4fa0cd3368865
Author: St John Karp <stjohn@fuzzjunket.com>
Date:   Sun,  9 Sep 2018 21:13:30 -0700

Pass a string to createApp instead of an array

Fixed a bug where the argument was the wrong data type.

Diffstat:
Mapp/Http/Controllers/LoginController.php | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/app/Http/Controllers/LoginController.php b/app/Http/Controllers/LoginController.php @@ -18,7 +18,12 @@ class LoginController extends Controller { # Register this app with the API server. $app_info = Mastodon::domain(env('MASTODON_DOMAIN')) - ->createApp(env('APP_NAME'), env('MASTODON_REDIRECT'), config('services.mastodon.scopes'), env('APP_URL')); + ->createApp( + env('APP_NAME'), + env('MASTODON_REDIRECT'), + implode(' ', config('services.mastodon.scopes')), + env('APP_URL') + ); $client_id = $app_info['client_id']; $client_secret = $app_info['client_secret'];