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
1 changed files with 2 additions and 1 deletions

View File

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