Merge pull request #1712 from netalertx/next_release

BE: preheader + typo
This commit is contained in:
Jokob @NetAlertX
2026-07-13 21:57:30 +10:00
committed by GitHub
3 changed files with 4 additions and 3 deletions

View File

@@ -891,7 +891,7 @@
"description": [
{
"language_code": "en_us",
"string": "A little hack - delay adding to the queue in case the process is restarted and previous publish processes aborted (it takes ~<code>2</code>s to update a sensor config on the broker). Tested with <code>2</code>-<code>3</code> seconds of delay. This delay is only applied when devices are created (during the first notification loop). It doesn not affect subsequent scans or notifications."
"string": "A little hack - delay adding to the queue in case the process is restarted and previous publish processes aborted (it takes ~<code>2</code>s to update a sensor config on the broker). Tested with <code>2</code>-<code>3</code> seconds of delay. This delay is only applied when devices are created (during the first notification loop). It does not affect subsequent scans or notifications."
},
{
"language_code": "es_es",

View File

@@ -1,7 +1,7 @@
<html>
<head></head>
<body>
<span style="display:none;">PREHEADER</span>
<span style="display:none !important;visibility:hidden;mso-hide:all;font-size:1px;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;">PREHEADER</span>
<font face=sans-serif>
<table align=center width=100% cellpadding=0 cellspacing=0 style="border-radius: 5px;">
<tr>

View File

@@ -149,7 +149,8 @@ class NotificationInstance:
# 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 = "&nbsp;" * 40 + "&#8203;" * 40
padding = (" &zwnj;&#8199;" * 47)
mail_html = mail_html.replace(
"PREHEADER",