@xuda.io/account_module 1.2.1866 → 1.2.1868
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 +8 -8
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2378,8 +2378,8 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2378
2378
|
contact_obj.profile_avatar = contact_obj?.profile_avatar_obj?.file_url;
|
|
2379
2379
|
contact_obj.avatar_source = file_ret?.data?.avatar_source;
|
|
2380
2380
|
const contact_save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, contact_obj);
|
|
2381
|
-
await update_contact_profile_picture_status(uid, contact_id, 3);
|
|
2382
2381
|
}
|
|
2382
|
+
await update_contact_profile_picture_status(uid, contact_id, 3);
|
|
2383
2383
|
} catch (err) {
|
|
2384
2384
|
await update_contact_profile_picture_status(uid, contact_id, 1, err.message);
|
|
2385
2385
|
delete_xuda_cache(contact_obj);
|
|
@@ -3545,13 +3545,13 @@ function isLikelySpamEmail(email) {
|
|
|
3545
3545
|
// return true; // e.g. a1@b.com, xyz@temp.com
|
|
3546
3546
|
// }
|
|
3547
3547
|
|
|
3548
|
-
// ────────────────────────────────────────────────
|
|
3549
|
-
// 5. Suspicious TLDs sometimes used in spam (2026 context)
|
|
3550
|
-
// ────────────────────────────────────────────────
|
|
3551
|
-
const suspiciousTlds = ['.top', '.xyz', '.club', '.online', '.site', '.fun', '.buzz'];
|
|
3552
|
-
if (suspiciousTlds.some((tld) => domain.endsWith(tld))) {
|
|
3553
|
-
|
|
3554
|
-
}
|
|
3548
|
+
// // ────────────────────────────────────────────────
|
|
3549
|
+
// // 5. Suspicious TLDs sometimes used in spam (2026 context)
|
|
3550
|
+
// // ────────────────────────────────────────────────
|
|
3551
|
+
// const suspiciousTlds = ['.top', '.xyz', '.club', '.online', '.site', '.fun', '.buzz'];
|
|
3552
|
+
// if (suspiciousTlds.some((tld) => domain.endsWith(tld))) {
|
|
3553
|
+
// return true;
|
|
3554
|
+
// }
|
|
3555
3555
|
|
|
3556
3556
|
// Passed most checks → probably not spam
|
|
3557
3557
|
return false;
|