summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-16 22:36:21 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-16 22:36:21 +1000
commit4a48a7bcb8dd8b55590a16a72931655ac2da4c7b (patch)
treed3f4f22191a4282d161f4f4e26194a4fa7892116 /api
parentMerge branch 'fix/sendMemberInProfile' into slowcord (diff)
parentActually respect with_mutual_guilds (diff)
downloadserver-4a48a7bcb8dd8b55590a16a72931655ac2da4c7b.tar.xz
Merge branch 'fix/sendMemberInProfile' into slowcord
Diffstat (limited to 'api')
-rw-r--r--api/src/routes/users/#id/profile.ts2
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, });