1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 09:17:03 +00:00

Update RemoteStatusPipeline, fix reply check

This commit is contained in:
Daniel Supernault 2023-08-06 21:52:01 -06:00
parent fab8f25e9b
commit 618b67271a
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -93,11 +93,13 @@ class RemoteStatusDelete implements ShouldQueue
{
if($status->in_reply_to_id) {
$parent = Status::findOrFail($status->in_reply_to_id);
$parent = Status::find($status->in_reply_to_id);
if($parent) {
--$parent->reply_count;
$parent->save();
StatusService::del($parent->id);
}
}
AccountInterstitial::where('item_type', 'App\Status')
->where('item_id', $status->id)