fix: Show correct favicon for team on login screen if public branding is enabled
This commit is contained in:
@@ -7,7 +7,7 @@ import Router from "koa-router";
|
|||||||
import send from "koa-send";
|
import send from "koa-send";
|
||||||
import userAgent, { UserAgentContext } from "koa-useragent";
|
import userAgent, { UserAgentContext } from "koa-useragent";
|
||||||
import { languages } from "@shared/i18n";
|
import { languages } from "@shared/i18n";
|
||||||
import { IntegrationType } from "@shared/types";
|
import { IntegrationType, TeamPreference } from "@shared/types";
|
||||||
import env from "@server/env";
|
import env from "@server/env";
|
||||||
import { NotFoundError } from "@server/errors";
|
import { NotFoundError } from "@server/errors";
|
||||||
import shareDomains from "@server/middlewares/shareDomains";
|
import shareDomains from "@server/middlewares/shareDomains";
|
||||||
@@ -152,6 +152,10 @@ router.get("*", shareDomains(), async (ctx, next) => {
|
|||||||
|
|
||||||
return renderApp(ctx, next, {
|
return renderApp(ctx, next, {
|
||||||
analytics,
|
analytics,
|
||||||
|
shortcutIcon:
|
||||||
|
team?.getPreference(TeamPreference.PublicBranding) && team.avatarUrl
|
||||||
|
? team.avatarUrl
|
||||||
|
: undefined,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user