From cfbc2993d3c6b49bd60c09d5d1a1500c556ace1a Mon Sep 17 00:00:00 2001 From: Seven Du Date: Fri, 1 Mar 2019 12:01:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(News):=20=E5=85=BC=E5=AE=B9=20PC=20?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E8=8E=B7=E5=8F=96=E7=BD=AE=E9=A1=B6=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/API2/Controllers/CommentPinnedController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/slimkit-plus-news/src/API2/Controllers/CommentPinnedController.php b/packages/slimkit-plus-news/src/API2/Controllers/CommentPinnedController.php index 1dca955a8..8f1f214a7 100644 --- a/packages/slimkit-plus-news/src/API2/Controllers/CommentPinnedController.php +++ b/packages/slimkit-plus-news/src/API2/Controllers/CommentPinnedController.php @@ -64,7 +64,7 @@ public function index(Request $request, NewsPinnedModel $model) ->limit($limit) ->get(); - $pinneds->load('news'); + $pinneds->load(['news', 'user']); return response()->json($pinneds, 200); }