« get me outta code hell

content: misc. image 2.0 - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateCoverArtwork.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-04-12 18:09:55 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-12 18:18:45 -0300
commitf12c13bebd38b1b189ec7df59ed7024192887d48 (patch)
tree54ab9d04ff18f26bb00f2fd376614b6572772d53 /src/content/dependencies/generateCoverArtwork.js
parenta0c68ad7f90e9ef64a8511bf0a57243c2c73ceda (diff)
content: misc. image 2.0
Diffstat (limited to 'src/content/dependencies/generateCoverArtwork.js')
-rw-r--r--src/content/dependencies/generateCoverArtwork.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/content/dependencies/generateCoverArtwork.js b/src/content/dependencies/generateCoverArtwork.js
index 69c149f4..3a10ab20 100644
--- a/src/content/dependencies/generateCoverArtwork.js
+++ b/src/content/dependencies/generateCoverArtwork.js
@@ -11,7 +11,7 @@ export default {
 
   relations: (relation, artwork) => ({
     image:
-      relation('image'),
+      relation('image', artwork),
 
     originDetails:
       relation('generateCoverArtworkOriginDetails', artwork),
@@ -30,16 +30,8 @@ export default {
     color:
       artwork.thing.color ?? null,
 
-    path:
-      artwork.path,
-
     dimensions:
       artwork.dimensions,
-
-    warnings:
-      artwork.artTags
-        .filter(tag => tag.isContentWarning)
-        .map(tag => tag.name),
   }),
 
   slots: {
@@ -69,9 +61,6 @@ export default {
     const {image} = relations;
 
     image.setSlots({
-      path: data.path,
-      warnings: data.warnings,
-
       color: slots.color ?? data.color,
       alt: slots.alt,
     });