Skip to content

Commit

Permalink
fix: 通过tag查找用户的错误关注关系
Browse files Browse the repository at this point in the history
  • Loading branch information
boxshadow committed Apr 21, 2018
1 parent fb9b8b7 commit f9b4b24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/APIs/V2/FindUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ public function findByTags(Request $request, TaggableModel $taggable, ResponseCo

return $response->json(
$users->map(function ($user) use ($currentUser) {
$user->user->following = $user->user->hasFollwing($currentUser);
$user->user->follower = $user->user->hasFollower($currentUser);
$user->user->following = $user->user->hasFollwing($currentUser->id);
$user->user->follower = $user->user->hasFollower($currentUser->id);

return $user->user;
})
Expand Down

0 comments on commit f9b4b24

Please sign in to comment.