diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index c68302667..10c5522c4 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -32,10 +32,11 @@ class Kernel extends HttpKernel \App\Http\Middleware\FrameGuard::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, - // \Illuminate\Session\Middleware\AuthenticateSession::class, + \Illuminate\Session\Middleware\AuthenticateSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, + \Laravel\Passport\Http\Middleware\CreateFreshApiToken::class, // 'restricted', ], diff --git a/app/Jobs/SharePipeline/SharePipeline.php b/app/Jobs/SharePipeline/SharePipeline.php index 8cccf8406..9f20bb3e9 100644 --- a/app/Jobs/SharePipeline/SharePipeline.php +++ b/app/Jobs/SharePipeline/SharePipeline.php @@ -77,7 +77,7 @@ class SharePipeline implements ShouldQueue $parent->reblogs_count = $parent->shares()->count(); $parent->save(); - StatusService::del($parent); + StatusService::del($parent->id); try { $notification = new Notification;