@xuda.io/account_module 1.2.1809 → 1.2.1810

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 +5 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1144,7 +1144,11 @@ const get_contact_pattern = async function (doc) {
1144
1144
  const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
1145
1145
  ret = shared_from_uid_ret.data.profile_avatar;
1146
1146
  } else if (doc.profile_avatar_stat === 1) {
1147
- ret = `pending-pattern.png`;
1147
+ if (!doc.profile_avatar_stat_ts || Date.now() - doc.profile_avatar_stat_ts > 1000 * 60 * 5) {
1148
+ ret = `error-pattern.png`;
1149
+ } else {
1150
+ ret = `pending-pattern.png`;
1151
+ }
1148
1152
  } else if (doc.profile_avatar_stat === 2) {
1149
1153
  if (!doc.profile_avatar_stat_ts || Date.now() - doc.profile_avatar_stat_ts > 1000 * 60 * 5) {
1150
1154
  ret = `error-pattern.png`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1809",
3
+ "version": "1.2.1810",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {