@xuda.io/account_module 1.2.780 → 1.2.782

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.
Files changed (2) hide show
  1. package/index.mjs +9 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1245,7 +1245,15 @@ const get_contact_pattern = async function (doc) {
1245
1245
  if (doc.account_type === 'business') {
1246
1246
  ret = doc.profile_picture;
1247
1247
  } else {
1248
- ret = `my-pattern.png`;
1248
+ switch (doc.avatar_source) {
1249
+ case 'fictional':
1250
+ ret = `fictional-avatar-pattern.png`;
1251
+ break;
1252
+
1253
+ default:
1254
+ ret = `my-pattern.png`;
1255
+ break;
1256
+ }
1249
1257
  }
1250
1258
  } else if (doc.shared_from_uid) {
1251
1259
  const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.780",
3
+ "version": "1.2.782",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {