Release v2.13.1
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile, web, pulse-signage-web) (push) Successful in 1m15s
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile.player, player, pulse-signage-player) (push) Successful in 32s

This commit is contained in:
2026-09-11 20:46:37 +01:00
parent 0a03cdd0b7
commit 394d23bb4d
47 changed files with 2408 additions and 559 deletions
+17 -2
View File
@@ -101,7 +101,22 @@ function stripEditorOnlyMarkup(value) {
}
function normalizeEditorMarkup(value) {
return String(value === undefined || value === null ? '' : value).trim();
return String(value === undefined || value === null ? '' : value)
.replace(/https?:\/\/[^"'\s<>]+(\/media\/[^"'\s<>)]*)/gi, '$1')
.trim();
}
function normalizeEditorMediaReferences(value) {
if (Array.isArray(value)) {
return value.map(normalizeEditorMediaReferences);
}
if (value && typeof value === 'object') {
Object.keys(value).forEach((key) => {
value[key] = normalizeEditorMediaReferences(value[key]);
});
return value;
}
return typeof value === 'string' ? normalizeEditorMarkup(value) : value;
}
async function fetchSlideById(pool, id) {
@@ -507,7 +522,7 @@ async function buildTemplateContent(pool, template, body, filesByField, existing
};
}
}
return content;
return normalizeEditorMediaReferences(content);
}
async function buildSlidePayload(pool, req, existingSlide) {