mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 02:24:31 +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 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;
|
||||||
|
|
|
@ -56,7 +56,7 @@ class UndoSharePipeline implements ShouldQueue
|
||||||
StatusService::del($parent->id);
|
StatusService::del($parent->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
$status->delete();
|
$status->forceDelete();
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue