mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update SharePipeline
This commit is contained in:
parent
466286af92
commit
44b32d8bb6
2 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue