Include profile photo in user API data
This commit is contained in:
parent
cf91063315
commit
04ea16743d
@ -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`,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user