Доделать профиль, связи и серверные миграции

This commit is contained in:
AidarKC
2026-09-01 18:14:55 +04:00
parent 632d56737b
commit c03d94105c
42 changed files with 1555 additions and 414 deletions
+10
View File
@@ -262,6 +262,16 @@ export async function loadUserProfileCard(login) {
// Compatibility aliases for older graph/card consumers; values come only from the new profile schema.
official: String(snapshot?.accountRole || '').trim().toLowerCase() === 'primary',
shine: String(snapshot?.shineStatus || '').trim().toLowerCase() === 'shining',
stats: {
ownedPublicChannelsCount: Number(user.ownedPublicChannelsCount || 0),
followingChannelsCount: Number(user.followingChannelsCount || 0),
friendsCount: Number(user.friendsCount || 0),
closeFriendsCount: Number(user.closeFriendsCount || 0),
primaryReceivedCount: Number(user.primaryConfirmationsReceivedCount || 0),
primaryGivenCount: Number(user.primaryConfirmationsGivenCount || 0),
shineReceivedCount: Number(user.shineConfirmationsReceivedCount || 0),
shineGivenCount: Number(user.shineConfirmationsGivenCount || 0),
},
avatar: snapshot?.avatar?.txId
? {
ar: String(snapshot.avatar.txId).trim(),