Обновить обработку аватаров и вложений

This commit is contained in:
AidarKC
2026-10-07 14:05:01 +03:00
parent 7b8e178723
commit d8f42c769c
35 changed files with 628 additions and 222 deletions
+2 -2
View File
@@ -272,9 +272,9 @@ export async function loadUserProfileCard(login) {
shineReceivedCount: Number(user.shineConfirmationsReceivedCount || 0),
shineGivenCount: Number(user.shineConfirmationsGivenCount || 0),
},
avatar: snapshot?.avatar?.txId
avatar: snapshot?.avatar?.source
? {
ar: String(snapshot.avatar.txId).trim(),
ar: String(snapshot.avatar.txId || snapshot.avatar.ar || '').trim(),
sha256Hex: String(snapshot?.avatar?.sha256Hex || '').trim().toLowerCase(),
}
: null,