diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-09-12 14:47:15 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-12 14:47:15 -0300 |
commit | 113157085c7bd6f23bd7c08ad6cd2d94673d7033 (patch) | |
tree | a78ddd133766eb2cc9f22a99155132d8718e752f /src/content/dependencies/generateArtistInfoPageChunkItem.js | |
parent | 44f1442bf28bac7b07ac25c1ea15c6b3a9d1223a (diff) |
content: artist..{TracksChunkedList,ChunkItem}: avoid double sanitize
No further changes needed for artwork and flash chunked lists, where contributions consist of only one item (which might be null).
Diffstat (limited to 'src/content/dependencies/generateArtistInfoPageChunkItem.js')
-rw-r--r-- | src/content/dependencies/generateArtistInfoPageChunkItem.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageChunkItem.js b/src/content/dependencies/generateArtistInfoPageChunkItem.js index 36f0ebcc..9f99513d 100644 --- a/src/content/dependencies/generateArtistInfoPageChunkItem.js +++ b/src/content/dependencies/generateArtistInfoPageChunkItem.js @@ -5,7 +5,7 @@ export default { content: {type: 'html'}, otherArtistLinks: {validate: v => v.strictArrayOf(v.isHTML)}, - contribution: {type: 'string'}, + contribution: {type: 'html'}, rerelease: {type: 'boolean'}, }, @@ -30,7 +30,7 @@ export default { options.artists = language.formatConjunctionList(slots.otherArtistLinks); } - if (slots.contribution) { + if (!html.isBlank(slots.contribution)) { parts.push('withContribution'); options.contribution = slots.contribution; } |