Explorar el Código

#3288 Fix: Undefined index: replies_count

https://github.com/pixelfed/pixelfed/issues/3288
Rm Yakovenko hace 3 años
padre
commit
72da667305
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/Services/StatusService.php

+ 2 - 1
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'],