optimizations
This commit is contained in:
@@ -44,6 +44,8 @@ final class FollowController extends Controller
|
||||
return response()->json([
|
||||
'following' => true,
|
||||
'followers_count' => $this->followService->followersCount((int) $target->id),
|
||||
'following_count' => $this->followService->followingCount((int) $actor->id),
|
||||
'context' => $this->followService->relationshipContext((int) $actor->id, (int) $target->id),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -59,6 +61,8 @@ final class FollowController extends Controller
|
||||
return response()->json([
|
||||
'following' => false,
|
||||
'followers_count' => $this->followService->followersCount((int) $target->id),
|
||||
'following_count' => $this->followService->followingCount((int) $actor->id),
|
||||
'context' => $this->followService->relationshipContext((int) $actor->id, (int) $target->id),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user