Skip to content

Commit

Permalink
fix(News): 兼容 PC 需要获取置顶用户信息需求
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Mar 1, 2019
1 parent 5faf023 commit cfbc299
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cfbc299

Please sign in to comment.