From 04ea16743d12ac1e4cb1ad302d248a49380fa6e4 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Thu, 27 Jan 2022 22:45:11 -0600 Subject: [PATCH] Include profile photo in user API data --- app/models/auth/User.model.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/auth/User.model.js b/app/models/auth/User.model.js index f137933..ce070f8 100644 --- a/app/models/auth/User.model.js +++ b/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`, } }