Show mutual friends for all users

This commit is contained in:
Natsumi
2025-11-11 15:15:35 +11:00
parent 4900432451
commit b4ba826809
3 changed files with 10 additions and 14 deletions

View File

@@ -961,18 +961,14 @@ export const useUserStore = defineStore('User', () => {
D.isShowAvatar = true;
}
});
if (D.isFriend) {
userRequest
.getMutualCounts({ userId })
.then((args) => {
if (args.params.userId === D.id) {
D.mutualFriendCount =
args.json.friends;
D.mutualGroupCount =
args.json.groups;
}
});
}
userRequest
.getMutualCounts({ userId })
.then((args) => {
if (args.params.userId === D.id) {
D.mutualFriendCount = args.json.friends;
D.mutualGroupCount = args.json.groups;
}
});
} else {
D.previousDisplayNames =
currentUser.value.pastDisplayNames;