From 922a5039ce142976deeec2f8e954e91db90e0017 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 25 Jan 2025 13:30:30 -0600 Subject: [PATCH] Update descriptionPlain to only be available in json expanded --- server/models/Book.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/models/Book.js b/server/models/Book.js index 4f7d1269..527960ea 100644 --- a/server/models/Book.js +++ b/server/models/Book.js @@ -344,7 +344,6 @@ class Book extends Model { publishedDate: this.publishedDate, publisher: this.publisher, description: this.description, - descriptionPlain: this.description ? htmlSanitizer.stripAllTags(this.description) : null, isbn: this.isbn, asin: this.asin, language: this.language, @@ -544,7 +543,6 @@ class Book extends Model { publishedDate: this.publishedDate, publisher: this.publisher, description: this.description, - descriptionPlain: this.description ? htmlSanitizer.stripAllTags(this.description) : null, isbn: this.isbn, asin: this.asin, language: this.language, @@ -567,7 +565,6 @@ class Book extends Model { publishedDate: this.publishedDate, publisher: this.publisher, description: this.description, - descriptionPlain: this.description ? htmlSanitizer.stripAllTags(this.description) : null, isbn: this.isbn, asin: this.asin, language: this.language, @@ -583,6 +580,7 @@ class Book extends Model { oldMetadataJSON.authorNameLF = this.authorNameLF oldMetadataJSON.narratorName = (this.narrators || []).join(', ') oldMetadataJSON.seriesName = this.seriesName + oldMetadataJSON.descriptionPlain = this.description ? htmlSanitizer.stripAllTags(this.description) : null return oldMetadataJSON }