Update RemoteStatusPipeline, fix reply check

pull/4576/head
Daniel Supernault 2 years ago
parent fab8f25e9b
commit 618b67271a
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save