1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-21 21:09:22 +00:00

Fix issue

This commit is contained in:
Pierre HUBERT 2020-05-26 18:42:07 +02:00
parent 7499c0d9a9
commit ed2bef1979

View File

@ -89,7 +89,7 @@ export class UserController {
info["allowPostFromFriendOnHisPage"] = user.allowPostsFromFriends; info["allowPostFromFriendOnHisPage"] = user.allowPostsFromFriends;
info["account_creation_time"] = user.timeCreate; info["account_creation_time"] = user.timeCreate;
info["backgroundImage"] = BackgroundImageHelper.GetURL(user.id); 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["pageLikes"] = await LikesHelper.Count(user.id, LikesType.USER);
info["user_like_page"] = h.signedIn ? await LikesHelper.IsLiking(h.getUserId(), user.id, LikesType.USER) : false; info["user_like_page"] = h.signedIn ? await LikesHelper.IsLiking(h.getUserId(), user.id, LikesType.USER) : false;