diff --git a/src/controllers/UserController.ts b/src/controllers/UserController.ts index 222537d..a206c59 100644 --- a/src/controllers/UserController.ts +++ b/src/controllers/UserController.ts @@ -89,7 +89,7 @@ export class UserController { info["allowPostFromFriendOnHisPage"] = user.allowPostsFromFriends; info["account_creation_time"] = user.timeCreate; info["backgroundImage"] = BackgroundImageHelper.GetURL(user.id); - info["number_friends"] = user.friendsListPublic ? await FriendsHelper.CountForUser(user.id) : 0 + info["number_friends"] = user.friendsListPublic || user.id == h.optionnalUserID ? await FriendsHelper.CountForUser(user.id) : 0 info["pageLikes"] = await LikesHelper.Count(user.id, LikesType.USER); info["user_like_page"] = h.signedIn ? await LikesHelper.IsLiking(h.getUserId(), user.id, LikesType.USER) : false;