mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update RemoteStatusDelete pipeline
This commit is contained in:
parent
45be6e10b8
commit
71e92261f4
1 changed files with 6 additions and 2 deletions
|
@ -54,7 +54,6 @@ class RemoteStatusDelete implements ShouldQueue
|
||||||
public $timeout = 90;
|
public $timeout = 90;
|
||||||
public $tries = 2;
|
public $tries = 2;
|
||||||
public $maxExceptions = 1;
|
public $maxExceptions = 1;
|
||||||
public $deleteWhenMissingModels = true;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new job instance.
|
* Create a new job instance.
|
||||||
|
@ -74,6 +73,11 @@ class RemoteStatusDelete implements ShouldQueue
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$status = $this->status;
|
$status = $this->status;
|
||||||
|
|
||||||
|
if($status->deleted_at) {
|
||||||
|
$status->forceDelete();
|
||||||
|
return;
|
||||||
|
}
|
||||||
$profile = $this->status->profile;
|
$profile = $this->status->profile;
|
||||||
|
|
||||||
StatusService::del($status->id, true);
|
StatusService::del($status->id, true);
|
||||||
|
@ -127,7 +131,7 @@ class RemoteStatusDelete implements ShouldQueue
|
||||||
StatusView::whereStatusId($status->id)->delete();
|
StatusView::whereStatusId($status->id)->delete();
|
||||||
Status::whereInReplyToId($status->id)->update(['in_reply_to_id' => null]);
|
Status::whereInReplyToId($status->id)->update(['in_reply_to_id' => null]);
|
||||||
|
|
||||||
$status->delete();
|
$status->forceDelete();
|
||||||
|
|
||||||
StatusService::del($status->id, true);
|
StatusService::del($status->id, true);
|
||||||
AccountService::del($status->profile_id);
|
AccountService::del($status->profile_id);
|
||||||
|
|
Loading…
Reference in a new issue