瀏覽代碼

#3288 Fix: Undefined index: replies_count

https://github.com/pixelfed/pixelfed/issues/3288
Rm Yakovenko 3 年之前
父節點
當前提交
72da667305
共有 1 個文件被更改,包括 2 次插入1 次删除
  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'],