Update ApiV1Dot1Controller.php

pull/5237/head
Daniel Supernault 7 months ago
parent 8f7becc58b
commit bd3d072227
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -1014,7 +1014,7 @@ class ApiV1Dot1Controller extends Controller
{ {
abort_if(! $request->user() || ! $request->user()->token(), 403); abort_if(! $request->user() || ! $request->user()->token(), 403);
abort_unless($request->user()->tokenCan('push'), 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(); $user = $request->user();
$res = [ $res = [
'expo_token' => (bool) $user->expo_token, 'expo_token' => (bool) $user->expo_token,

Loading…
Cancel
Save