@xuda.io/account_module 1.2.1790 → 1.2.1792
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +4 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2361,8 +2361,8 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2361
2361
|
name: contact_obj.name,
|
|
2362
2362
|
bio: contact_obj?.business_info?.bio || contact_obj?.personal_info?.bio,
|
|
2363
2363
|
country: contact_obj?.business_info?.business_country || contact_obj?.person_info?.person_nationality,
|
|
2364
|
-
mainCategory: contact_obj?.business_info?.
|
|
2365
|
-
subCategory: contact_obj?.business_info?.
|
|
2364
|
+
mainCategory: contact_obj?.business_info?.business_category,
|
|
2365
|
+
subCategory: contact_obj?.business_info?.business_sub_category,
|
|
2366
2366
|
business_has_person: contact_obj?.business_has_person && contact_obj?.person_info?.person_full_name !== 'Not available',
|
|
2367
2367
|
person_nationality: contact_obj?.person_info?.person_nationality,
|
|
2368
2368
|
},
|
|
@@ -2814,6 +2814,8 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2814
2814
|
// const account_profile_doc = await db_module.get_couch_doc_native('xuda_accounts', doc.share_item_id);
|
|
2815
2815
|
const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
|
|
2816
2816
|
ret = shared_from_uid_ret.data.profile_avatar;
|
|
2817
|
+
} else if (devicePixelRatio.is_spam) {
|
|
2818
|
+
ret = `spam-pattern.png`;
|
|
2817
2819
|
} else if (doc.account_type === 'business') {
|
|
2818
2820
|
ret = doc.profile_picture;
|
|
2819
2821
|
} else {
|