« get me outta code hell

content: generateArtistCredit: always pass showAnnotation through - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-01-26 18:29:42 -0400
committer(quasar) nebula <qznebula@protonmail.com>2026-01-26 18:29:42 -0400
commitac4b8a49c6bed647811198eadb6b189dfa91d7b9 (patch)
tree3cf610785273397f97d3a80db3a25398f7930f52 /src/content
parent69e2ecc32d5dd408f3743bb7d10afbd0fe15c96f (diff)
content: generateArtistCredit: always pass showAnnotation through
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateArtistCredit.js16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/content/dependencies/generateArtistCredit.js b/src/content/dependencies/generateArtistCredit.js
index 7640c8b9..35603610 100644
--- a/src/content/dependencies/generateArtistCredit.js
+++ b/src/content/dependencies/generateArtistCredit.js
@@ -121,27 +121,13 @@ export default {
       ...relations.featuringContributionLinks,
     ]) {
       link.setSlots({
+        showAnnotation: slots.showAnnotation,
         showExternalLinks: slots.showExternalLinks,
         showChronology: slots.showChronology,
         chronologyKind: slots.chronologyKind,
       });
     }
 
-    for (const link of relations.normalContributionLinks) {
-      link.setSlots({
-        showAnnotation: slots.showAnnotation,
-      });
-    }
-
-    for (const link of relations.featuringContributionLinks) {
-      link.setSlots({
-        showAnnotation:
-          (slots.featuringStringKey || slots.normalFeaturingStringKey
-            ? false
-            : slots.showAnnotation),
-      });
-    }
-
     let formattedArtistList = null;
 
     if (!html.isBlank(relations.formatText)) {