From ce6363909015eae9ff19389f0b929ab5e56a096f Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Tue, 5 Oct 2021 19:52:42 +0200 Subject: :bug: fix user projection --- gateway/src/opcodes/Identify.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gateway/src') 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); -- cgit 1.5.1