Pass a string to createApp instead of an array

Fixed a bug where the argument was the wrong data type.
This commit is contained in:
St John Karp 2018-09-09 21:13:30 -07:00
parent b03b3ec100
commit 73d0123d69
1 changed files with 6 additions and 1 deletions

View File

@ -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'];