From b8ebc0021275f7c491e724dde065cfb8c210cfdb Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 14 Dec 2021 21:13:30 -0700 Subject: [PATCH 1/2] Update SharePipeline, fix variable bug --- app/Jobs/SharePipeline/SharePipeline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From 642b8020223a929c43e0cfbc6cc0f7d9da95144d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 14 Dec 2021 21:18:29 -0700 Subject: [PATCH 2/2] Update Http Kernel --- app/Http/Kernel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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', ],