1
0
Fork 0

Merge pull request #4576 from pixelfed/staging

Update RemoteStatusPipeline, fix reply check
This commit is contained in:
daniel 2023-08-06 21:52:35 -06:00 committed by GitHub
commit 211a9057fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -93,10 +93,12 @@ class RemoteStatusDelete implements ShouldQueue
{
if($status->in_reply_to_id) {
$parent = Status::findOrFail($status->in_reply_to_id);
--$parent->reply_count;
$parent->save();
StatusService::del($parent->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')