Merge pull request #3294 from rm-yakovenko/issues/3288

Fix: Undefined index: replies_count
This commit is contained in:
daniel 2022-03-08 21:05:48 -07:00 committed by GitHub
commit 018f7e10a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,11 +47,12 @@ class StatusService
return null;
}
$status['replies_count'] = $status['reply_count'];
if(config('exp.emc') == false) {
return $status;
}
$status['replies_count'] = $status['reply_count'];
unset(
$status['_v'],
$status['comments_disabled'],