« get me outta code hell

content: gAIPArtworksChunkItem: only handle artwork contributions - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-10-20 06:22:34 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-10-20 06:22:34 -0300
commit727d3304bfa11f37a8788eefd3e9fca97bcb8775 (patch)
treec6ff6597f34f7a20b90c7fd415eb82150f8ffe39 /src
parentdee2e5ced6843a80eba12c2f2730ed61c81d115e (diff)
content: gAIPArtworksChunkItem: only handle artwork contributions
all contributions that reach this content function are now proper
artwork contributions, certainly never a mix including contribs
directly from yaml Cover Artists (& co) fields
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateArtistInfoPageArtworksChunkItem.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageArtworksChunkItem.js b/src/content/dependencies/generateArtistInfoPageArtworksChunkItem.js
index 1e381c78..e3ba5342 100644
--- a/src/content/dependencies/generateArtistInfoPageArtworksChunkItem.js
+++ b/src/content/dependencies/generateArtistInfoPageArtworksChunkItem.js
@@ -3,17 +3,11 @@ import {empty} from '#sugar';
 export default {
   query: (contrib) => ({
     kind:
-      (contrib.thingProperty === 'bannerArtistContribs' ||
-       (contrib.thing.isArtwork &&
-        contrib.thing.thingProperty === 'bannerArtwork')
+      (contrib.thing.thingProperty === 'bannerArtwork'
         ? 'banner'
-     : contrib.thingProperty === 'wallpaperArtistContribs' ||
-       (contrib.thing.isArtwork &&
-        contrib.thing.thingProperty === 'wallpaperArtwork')
+     : contrib.thing.thingProperty === 'wallpaperArtwork'
         ? 'wallpaper'
-     : contrib.thing.isAlbum ||
-       (contrib.thing.isArtwork &&
-        contrib.thing.thingProperty === 'coverArtworks')
+     : contrib.thing.thingProperty === 'coverArtworks'
         ? 'album-cover'
         : 'track-cover'),
   }),