Browse Source

Include profile photo in user API data

master
Garrett Mills 4 months ago
parent
commit
04ea16743d
  1. 1
      app/models/auth/User.model.js

1
app/models/auth/User.model.js

@ -116,6 +116,7 @@ class User extends AuthUser {
tagline: this.tagline,
trap: this.trap,
group_ids: (await this.groups()).map(x => x.id),
profile_photo: `${this.configs.get('app.url')}api/v1/auth/users/${this.uid}/photo`,
}
}

Loading…
Cancel
Save