1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +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,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')