Update profile.js
This commit is contained in:
@@ -16,15 +16,18 @@ async function getProfileFromAnixart(profileId, token = '') {
|
||||
|
||||
if (Array.isArray(verifiedList) && verifiedList.includes(profileId.toString())) {
|
||||
isVerified = true;
|
||||
profileData.profile.is_verified = true; // Обновляем внутри профиля
|
||||
profileData.profile.is_verified = true; // Обновляем в профиле
|
||||
}
|
||||
} catch {
|
||||
// Если не получилось проверить, просто игнорируем и оставляем false
|
||||
// Не удалось проверить верификацию — игнорируем
|
||||
}
|
||||
|
||||
// Тестовая вставка privilege_level (можно отключить закомментировав строку ниже)
|
||||
profileData.profile.privilege_level = 3;
|
||||
|
||||
return {
|
||||
...profileData,
|
||||
is_verified: isVerified, // Добавляем также в корень ответа
|
||||
is_verified: isVerified,
|
||||
};
|
||||
} catch {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user