Skip to content

High performance self-hosted photo and video management solution.

fix(server): email cannot render with pretty flag (#15157)

Alex36a9ae7c5490
diff --git a/server/src/repositories/notification.repository.ts b/server/src/repositories/notification.repository.ts
index b2444301e5..718f82bd75 100644
--- a/server/src/repositories/notification.repository.ts
+++ b/server/src/repositories/notification.repository.ts
@@ -33,7 +33,7 @@ export class NotificationRepository implements INotificationRepository {
async renderEmail(request: EmailRenderRequest): Promise<{ html: string; text: string }> {
const component = this.render(request);
- const html = await render(component, { pretty: true });
+ const html = await render(component, { pretty: false });
const text = await render(component, { plainText: true });
return { html, text };
}