Update SharePipeline

This commit is contained in:
Daniel Supernault 2021-12-12 19:32:11 -07:00
parent 466286af92
commit 44b32d8bb6
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 3 additions and 1 deletions

View file

@ -15,6 +15,7 @@ use League\Fractal\Serializer\ArraySerializer;
use App\Transformer\ActivityPub\Verb\Announce; use App\Transformer\ActivityPub\Verb\Announce;
use GuzzleHttp\{Pool, Client, Promise}; use GuzzleHttp\{Pool, Client, Promise};
use App\Util\ActivityPub\HttpSignature; use App\Util\ActivityPub\HttpSignature;
use App\Services\StatusService;
class SharePipeline implements ShouldQueue class SharePipeline implements ShouldQueue
{ {
@ -76,6 +77,7 @@ class SharePipeline implements ShouldQueue
$parent->reblogs_count = $parent->shares()->count(); $parent->reblogs_count = $parent->shares()->count();
$parent->save(); $parent->save();
StatusService::del($parent);
try { try {
$notification = new Notification; $notification = new Notification;

View file

@ -56,7 +56,7 @@ class UndoSharePipeline implements ShouldQueue
StatusService::del($parent->id); StatusService::del($parent->id);
} }
$status->delete(); $status->forceDelete();
return 1; return 1;
} }