1
0
Fork 0
forked from mirror/pixelfed

#3288 Fix: Undefined index: replies_count

https://github.com/pixelfed/pixelfed/issues/3288
This commit is contained in:
Rm Yakovenko 2022-03-07 09:21:05 +02:00
parent 7fa9e5802b
commit 72da667305

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'],