From 44b32d8bb60fbb03f8a80b8720d8aab6dc0dd9ae Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 12 Dec 2021 19:32:11 -0700 Subject: [PATCH] Update SharePipeline --- app/Jobs/SharePipeline/SharePipeline.php | 2 ++ app/Jobs/SharePipeline/UndoSharePipeline.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Jobs/SharePipeline/SharePipeline.php b/app/Jobs/SharePipeline/SharePipeline.php index db7ea4c01..8cccf8406 100644 --- a/app/Jobs/SharePipeline/SharePipeline.php +++ b/app/Jobs/SharePipeline/SharePipeline.php @@ -15,6 +15,7 @@ use League\Fractal\Serializer\ArraySerializer; use App\Transformer\ActivityPub\Verb\Announce; use GuzzleHttp\{Pool, Client, Promise}; use App\Util\ActivityPub\HttpSignature; +use App\Services\StatusService; class SharePipeline implements ShouldQueue { @@ -76,6 +77,7 @@ class SharePipeline implements ShouldQueue $parent->reblogs_count = $parent->shares()->count(); $parent->save(); + StatusService::del($parent); try { $notification = new Notification; diff --git a/app/Jobs/SharePipeline/UndoSharePipeline.php b/app/Jobs/SharePipeline/UndoSharePipeline.php index 6336ac675..ba3a2791b 100644 --- a/app/Jobs/SharePipeline/UndoSharePipeline.php +++ b/app/Jobs/SharePipeline/UndoSharePipeline.php @@ -56,7 +56,7 @@ class UndoSharePipeline implements ShouldQueue StatusService::del($parent->id); } - $status->delete(); + $status->forceDelete(); return 1; }