« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content/dependencies/generateListenLineOrList.js6
-rw-r--r--src/external-links.js6
-rw-r--r--src/strings-default.yaml2
3 files changed, 7 insertions, 7 deletions
diff --git a/src/content/dependencies/generateListenLineOrList.js b/src/content/dependencies/generateListenLineOrList.js
index f0d8dae9..68f48d5e 100644
--- a/src/content/dependencies/generateListenLineOrList.js
+++ b/src/content/dependencies/generateListenLineOrList.js
@@ -5,7 +5,7 @@ function getReleaseContext(urlString, {
   _artistURLs,
   albumArtistURLs,
 }) {
-  const composerBandcampDomains =
+  const artistBandcampDomains =
     albumArtistURLs
       .filter(url => url.hostname.endsWith('.bandcamp.com'))
       .map(url => url.hostname);
@@ -16,8 +16,8 @@ function getReleaseContext(urlString, {
     return ['officialRelease'];
   }
 
-  if (composerBandcampDomains.includes(url.hostname)) {
-    return ['composerRelease'];
+  if (artistBandcampDomains.includes(url.hostname)) {
+    return ['artistRelease'];
   }
 
   return [];
diff --git a/src/external-links.js b/src/external-links.js
index 409ff503..6624082b 100644
--- a/src/external-links.js
+++ b/src/external-links.js
@@ -31,7 +31,7 @@ export const externalLinkContexts = [
   'group',
   'track',
 
-  'composerRelease',
+  'artistRelease',
   'officialRelease',
 ];
 
@@ -260,10 +260,10 @@ export const externalLinkSpec = [
   {
     match: {
       domain: '.bandcamp.com',
-      context: 'composerRelease',
+      context: 'artistRelease',
     },
 
-    platform: 'bandcamp.composerRelease',
+    platform: 'bandcamp.artistRelease',
     handle: {domain: /^[^.]+/},
 
     icon: 'bandcamp',
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 227bcac2..d4779387 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -706,7 +706,7 @@ misc:
     bandcamp:
       _: "Bandcamp"
 
-      composerRelease: "Bandcamp (composer's release)"
+      artistRelease: "Bandcamp (artist's release)"
       officialRelease: "Bandcamp (official release)"
 
     bgreco: