From 3f772ff8646cd7092d6045974a22a1a1cda69e86 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 30 Jan 2021 16:37:29 -0700 Subject: [PATCH] Update StatusDelete pipeline, call StatusService::del() to remove status from cache --- app/Jobs/StatusPipeline/StatusDelete.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Jobs/StatusPipeline/StatusDelete.php b/app/Jobs/StatusPipeline/StatusDelete.php index e465ca40..64339ff6 100644 --- a/app/Jobs/StatusPipeline/StatusDelete.php +++ b/app/Jobs/StatusPipeline/StatusDelete.php @@ -25,6 +25,7 @@ use GuzzleHttp\Pool; use GuzzleHttp\Client; use GuzzleHttp\Promise; use App\Util\ActivityPub\HttpSignature; +use App\Services\StatusService; class StatusDelete implements ShouldQueue { @@ -59,6 +60,7 @@ class StatusDelete implements ShouldQueue $status = $this->status; $profile = $this->status->profile; + StatusService::del($status->id); $count = $profile->statuses() ->getQuery() ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album'])