Skip to content

Commit 33eda40

Browse files
committed
fix(feeds): 修复动态排行榜没有返回用户头像
1 parent 287bfe1 commit 33eda40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/slimkit-plus-feed/src/API2/RankController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function index(Request $request, FeedModel $feedModel, Carbon $datetime,
6666
->where('audit_status', 1)
6767
->with([
6868
'user' => function ($query) {
69-
return $query->select('id', 'name', 'sex')->withTrashed();
69+
return $query->select('id', 'name', 'sex', 'avatar')->withTrashed();
7070
},
7171
'user.extra',
7272
])

0 commit comments

Comments
 (0)