diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-16 22:36:05 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-16 22:36:05 +1000 |
commit | 7f3b1572d7171d9e3d15c2cffaaebd8830a02500 (patch) | |
tree | fb8e1751b4e5ea5ac5a187396f464b633b13c141 | |
parent | Don't send @everyone role (diff) | |
download | server-7f3b1572d7171d9e3d15c2cffaaebd8830a02500.tar.xz |
Actually respect with_mutual_guilds
-rw-r--r-- | api/src/routes/users/#id/profile.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/users/#id/profile.ts b/api/src/routes/users/#id/profile.ts index f8eee876..a77fbdb5 100644 --- a/api/src/routes/users/#id/profile.ts +++ b/api/src/routes/users/#id/profile.ts @@ -21,7 +21,7 @@ router.get("/", route({ test: { response: { body: "UserProfileResponse" } } }), var mutual_guilds: object[] = []; var premium_guild_since; - if (with_mutual_guilds) { + if (with_mutual_guilds == "true") { const requested_member = await Member.find({ id: req.params.id, }); const self_member = await Member.find({ id: req.user_id, }); |