diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-12-09 16:06:49 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-12-09 16:06:49 -0400 |
commit | 8d3f6d3895c2cafe902a781f11e7a9d989edbf07 (patch) | |
tree | 47a80d8482e3414bded9e4145160f4366886f40b /src/content/dependencies/generateAlbumCoverArtwork.js | |
parent | a38dc428670ffa520b804f675ded9d11d468f15e (diff) |
content: generate{Album,Track}CoverArtwork: content warnings(!!)
oops :+1:
Diffstat (limited to 'src/content/dependencies/generateAlbumCoverArtwork.js')
-rw-r--r-- | src/content/dependencies/generateAlbumCoverArtwork.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/content/dependencies/generateAlbumCoverArtwork.js b/src/content/dependencies/generateAlbumCoverArtwork.js index 1e11c0ac..ff7d2b85 100644 --- a/src/content/dependencies/generateAlbumCoverArtwork.js +++ b/src/content/dependencies/generateAlbumCoverArtwork.js @@ -45,6 +45,11 @@ export default { dimensions: album.coverArtDimensions, + + warnings: + album.artTags + .filter(tag => tag.isContentWarning) + .map(tag => tag.name), }), slots: { @@ -73,6 +78,7 @@ export default { }), dimensions: data.dimensions, + warnings: data.warnings, details: [ slots.details === 'tags' && |