summary refs log tree commit diff
path: root/gateway/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-05 19:52:42 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-05 19:52:42 +0200
commitce6363909015eae9ff19389f0b929ab5e56a096f (patch)
tree4b09029da3a3bc9219391075282b68a291833ba0 /gateway/src
parent:art: reformatted (diff)
downloadserver-ce6363909015eae9ff19389f0b929ab5e56a096f.tar.xz
:bug: fix user projection
Diffstat (limited to '')
-rw-r--r--gateway/src/opcodes/Identify.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts

index a58583ee..8233aade 100644 --- a/gateway/src/opcodes/Identify.ts +++ b/gateway/src/opcodes/Identify.ts
@@ -21,6 +21,7 @@ import { PublicMember, ChannelType, PublicUser, + PrivateUserProjection, } from "@fosscord/util"; import { setupListener } from "../listener/listener"; import { IdentifySchema } from "../schema/Identify"; @@ -111,6 +112,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { const user = await User.findOneOrFail({ where: { id: this.user_id }, relations: ["relationships", "relationships.to"], + select: [...PrivateUserProjection, "relationships"], }); if (!user) return this.close(CLOSECODES.Authentication_failed);