From 1ace76eb446d127dae39b2d8b3fce44860265f9c Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 9 Nov 2023 09:21:36 -0500 Subject: [PATCH] fix: Show correct favicon for team on login screen if public branding is enabled --- server/routes/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/routes/index.ts b/server/routes/index.ts index 9804cbaaa..a37af68a4 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -7,7 +7,7 @@ import Router from "koa-router"; import send from "koa-send"; import userAgent, { UserAgentContext } from "koa-useragent"; import { languages } from "@shared/i18n"; -import { IntegrationType } from "@shared/types"; +import { IntegrationType, TeamPreference } from "@shared/types"; import env from "@server/env"; import { NotFoundError } from "@server/errors"; import shareDomains from "@server/middlewares/shareDomains"; @@ -152,6 +152,10 @@ router.get("*", shareDomains(), async (ctx, next) => { return renderApp(ctx, next, { analytics, + shortcutIcon: + team?.getPreference(TeamPreference.PublicBranding) && team.avatarUrl + ? team.avatarUrl + : undefined, }); });