From 72da667305c88f1b8c7038839907b338f6694e6a Mon Sep 17 00:00:00 2001 From: Rm Yakovenko Date: Mon, 7 Mar 2022 09:21:05 +0200 Subject: [PATCH] #3288 Fix: Undefined index: replies_count https://github.com/pixelfed/pixelfed/issues/3288 --- app/Services/StatusService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Services/StatusService.php b/app/Services/StatusService.php index cc292b05..f3b4b353 100644 --- a/app/Services/StatusService.php +++ b/app/Services/StatusService.php @@ -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'],