@xuda.io/account_module 1.2.780 → 1.2.781

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 +8 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1245,6 +1245,14 @@ const get_contact_pattern = async function (doc) {
1245
1245
  if (doc.account_type === 'business') {
1246
1246
  ret = doc.profile_picture;
1247
1247
  } else {
1248
+ switch (doc.avatar_source) {
1249
+ case 'fictional':
1250
+ ret = `fictional-avatar-pattern.png`;
1251
+ break;
1252
+
1253
+ default:
1254
+ break;
1255
+ }
1248
1256
  ret = `my-pattern.png`;
1249
1257
  }
1250
1258
  } else if (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.781",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {