BE: better notification preview

This commit is contained in:
jokob-sk
2026-07-10 12:06:45 +10:00
parent a2c82b7940
commit 7f4c7907be

View File

@@ -146,9 +146,14 @@ class NotificationInstance:
mail_html, conf.REPORT_DASHBOARD_URL + "/deviceDetails.php?mac="
)
# Add Preheaders for preview after mac links created
# Add preheader for inbox preview after all links have been generated.
# Invisible padding prevents email clients from showing the start of the email body.
preheader = "".join(preheaders)
padding = " " * 40 + "​" * 40
mail_html = mail_html.replace(
"PREHEADER", "".join(preheaders)
"PREHEADER",
preheader + padding,
)
final_html = indent(