mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 14:03:16 +00:00
Update StatusDelete Pipeline
This commit is contained in:
parent
47df007a7e
commit
faec46069b
1 changed files with 8 additions and 0 deletions
|
@ -58,6 +58,14 @@ class StatusDelete implements ShouldQueue
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$comments = Status::where('in_reply_to_id', $status->id)->get();
|
||||||
|
foreach($comments as $comment) {
|
||||||
|
$comment->in_reply_to_id = null;
|
||||||
|
$comment->save();
|
||||||
|
Notification::whereItemType('App\Status')
|
||||||
|
->whereItemId($comment->id)
|
||||||
|
->delete();
|
||||||
|
}
|
||||||
|
|
||||||
$status->likes()->delete();
|
$status->likes()->delete();
|
||||||
Notification::whereItemType('App\Status')
|
Notification::whereItemType('App\Status')
|
||||||
|
|
Loading…
Reference in a new issue