Parcourir la source

#3288 Fix: Undefined index: replies_count

https://github.com/pixelfed/pixelfed/issues/3288
Rm Yakovenko il y a 3 ans
Parent
commit
72da667305
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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'],