Fix server sanitizer to persist appleBooksUrl/Label on customLinks; v1.1.43
Publish Container / docker (push) Successful in 15m7s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 4.6 committed 2026-08-27 11:56:53 -04:00
1 parent 1db0a919c2
commit 943674e7f3
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "siteforge",
"private": true,
"version": "1.1.42",
"version": "1.1.43",
"type": "module",
"scripts": {
"dev": "vite",
+2
View File
@@ -180,6 +180,8 @@ function sanitizeCustomLinks(value) {
description: typeof item.description === 'string' ? item.description.trim().slice(0, 4000) : '',
amazonUrl: sanitizeUrl(item.amazonUrl),
amazonLabel: typeof item.amazonLabel === 'string' ? item.amazonLabel.trim().slice(0, 120) : '',
appleBooksUrl: sanitizeUrl(item.appleBooksUrl),
appleBooksLabel: typeof item.appleBooksLabel === 'string' ? item.appleBooksLabel.trim().slice(0, 120) : '',
tags: Array.isArray(item.tags)
? item.tags.filter(tag => typeof tag === 'string').map(tag => tag.trim()).filter(Boolean).slice(0, 20)
: [],