Skip to content

Commit

Permalink
Update RemoteStatusDelete pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Aug 1, 2023
1 parent 45be6e1 commit 71e9226
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Jobs/StatusPipeline/RemoteStatusDelete.php
Expand Up @@ -54,7 +54,6 @@ class RemoteStatusDelete implements ShouldQueue
public $timeout = 90;
public $tries = 2;
public $maxExceptions = 1;
public $deleteWhenMissingModels = true;

/**
* Create a new job instance.
Expand All @@ -74,6 +73,11 @@ public function __construct(Status $status)
public function handle()
{
$status = $this->status;

if($status->deleted_at) {
$status->forceDelete();
return;
}
$profile = $this->status->profile;

StatusService::del($status->id, true);
Expand Down Expand Up @@ -127,7 +131,7 @@ public function unlinkRemoveMedia($status)
StatusView::whereStatusId($status->id)->delete();
Status::whereInReplyToId($status->id)->update(['in_reply_to_id' => null]);

$status->delete();
$status->forceDelete();

StatusService::del($status->id, true);
AccountService::del($status->profile_id);
Expand Down

0 comments on commit 71e9226

Please sign in to comment.