Update SharePipeline

pull/3035/head
Daniel Supernault 3 years ago
parent 466286af92
commit 44b32d8bb6
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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;

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

Loading…
Cancel
Save