@xuda.io/account_module 1.2.847 → 1.2.849
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 +10 -8
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1271,6 +1271,9 @@ const get_contact_pattern = async function (doc) {
|
|
|
1271
1271
|
} else if (doc?.reference_doc?.shared_from_uid) {
|
|
1272
1272
|
const shared_from_uid_ret = await get_account_name({ uid_query: doc.reference_doc.shared_from_uid });
|
|
1273
1273
|
ret = shared_from_uid_ret.data.profile_avatar;
|
|
1274
|
+
} else if (doc?.reference_doc?.shared_from_uid) {
|
|
1275
|
+
const shared_from_uid_ret = await get_account_name({ uid_query: doc.reference_doc.shared_from_uid });
|
|
1276
|
+
ret = shared_from_uid_ret.data.profile_avatar;
|
|
1274
1277
|
} else if (doc.contact_uid) {
|
|
1275
1278
|
switch (doc.avatar_source) {
|
|
1276
1279
|
case 'fictional':
|
|
@@ -1625,14 +1628,13 @@ export const get_contacts = async function (req) {
|
|
|
1625
1628
|
});
|
|
1626
1629
|
if (ret_to) continue;
|
|
1627
1630
|
|
|
1628
|
-
let reference_doc;
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
}
|
|
1631
|
+
// let reference_doc;
|
|
1632
|
+
// if (doc.shared_from_uid) {
|
|
1633
|
+
// reference_doc = _.cloneDeep(doc);
|
|
1634
|
+
// doc = await db_module.get_couch_doc_native('xuda_contacts', reference_doc.share_item_id);
|
|
1635
|
+
// doc.reference_doc = reference_doc;
|
|
1636
|
+
// doc._id = reference_doc._id;
|
|
1637
|
+
// }
|
|
1636
1638
|
|
|
1637
1639
|
const ret_from = requests_from.docs.find((e) => {
|
|
1638
1640
|
return e.contact_uid === doc.contact_uid;
|