diff --git a/package.json b/package.json index 29555fa..10cb6ad 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "siteforge", "private": true, - "version": "1.1.42", + "version": "1.1.43", "type": "module", "scripts": { "dev": "vite", diff --git a/server/helpers.js b/server/helpers.js index b950c99..78de382 100644 --- a/server/helpers.js +++ b/server/helpers.js @@ -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) : [],