@smartico/public-api 0.0.97 → 0.0.98

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.
@@ -418,7 +418,7 @@ var ActivityTypeLimited;
418
418
 
419
419
  class CoreUtils {}
420
420
  CoreUtils.avatarUrl = (avatar_id, avatarDomain) => {
421
- if (avatar_id !== null && avatar_id !== undefined && !(avatar_id.startsWith && avatar_id.startsWith('http'))) {
421
+ if (avatarDomain && avatar_id !== null && avatar_id !== undefined && !(avatar_id.startsWith && avatar_id.startsWith('http'))) {
422
422
  if (avatarDomain.endsWith('/')) {
423
423
  return avatarDomain.slice(0, -1) + '/avatar/' + avatar_id;
424
424
  } else {