From ed2bef1979b215855d06eb51e2188430fec17957 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 26 May 2020 18:42:07 +0200 Subject: [PATCH] Fix issue --- src/controllers/UserController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;