SHA256
Доделать профиль, связи и серверные миграции
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user