Update ApiV1Dot1Controller.php

This commit is contained in:
Daniel Supernault 2024-07-22 03:11:26 -06:00
parent 8f7becc58b
commit bd3d072227
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -1014,7 +1014,7 @@ class ApiV1Dot1Controller extends Controller
{
abort_if(! $request->user() || ! $request->user()->token(), 403);
abort_unless($request->user()->tokenCan('push'), 403);
abort_unless(config('services.expo.access_token') && strlen(config('services.expo.access_token')) > 10, 404, 'Push notifications are not supported on this server.');
$user = $request->user();
$res = [
'expo_token' => (bool) $user->expo_token,