diff --git a/apps/meteor/server/routes/avatar/user.ts b/apps/meteor/server/routes/avatar/user.ts index 0c912c5bed56..8e2cb2054001 100644 --- a/apps/meteor/server/routes/avatar/user.ts +++ b/apps/meteor/server/routes/avatar/user.ts @@ -93,7 +93,7 @@ export const userAvatarById = async function (request: IncomingMessage, res: Ser const externalProviderUrl = settings.get('Accounts_AvatarExternalProviderUrl'); if (externalProviderUrl) { - const user = await Users.findOneById>(requestUserId, { projection: { username: 1, name: 1 } }); + const user = await Users.findOneById>(requestUserId, { projection: { username: 1 } }); if (!user?.username) { res.writeHead(404);