Include profile photo in user API data
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing

This commit is contained in:
Garrett Mills 2022-01-27 22:45:11 -06:00
parent cf91063315
commit 04ea16743d

View File

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