mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update ApiV1Dot1Controller.php
This commit is contained in:
parent
8f7becc58b
commit
bd3d072227
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue