mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 05:19:22 +00:00
Fix issue
This commit is contained in:
parent
7499c0d9a9
commit
ed2bef1979
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user