Skip to content

Commit

Permalink
Update descriptionPlain to only be available in json expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Jan 25, 2025
1 parent 2861853 commit 922a503
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/models/Book.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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
}

Expand Down

0 comments on commit 922a503

Please sign in to comment.