« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/external-links.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/external-links.js')
-rw-r--r--src/util/external-links.js44
1 files changed, 18 insertions, 26 deletions
diff --git a/src/util/external-links.js b/src/util/external-links.js
index edef070..503512f 100644
--- a/src/util/external-links.js
+++ b/src/util/external-links.js
@@ -152,32 +152,6 @@ export const externalLinkSpec = [
     icon: 'youtube',
   },
 
-  // Special handling for artist links
-
-  {
-    match: {
-      domain: 'patreon.com',
-      context: 'artist',
-    },
-
-    platform: 'patreon',
-    handle: {pathname: /([^/]+)\/?$/},
-
-    icon: 'globe',
-  },
-
-  {
-    match: {
-      context: 'artist',
-      domain: 'youtube.com',
-    },
-
-    platform: 'youtube',
-    handle: {pathname: /^@([^/]+)\/?$/},
-
-    icon: 'youtube',
-  },
-
   // Special handling for flash links
 
   {
@@ -438,6 +412,15 @@ export const externalLinkSpec = [
 
   {
     match: {domain: 'patreon.com'},
+
+    platform: 'patreon',
+    handle: {pathname: /([^/]+)\/?$/},
+
+    icon: 'globe',
+  },
+
+  {
+    match: {domain: 'patreon.com'},
     platform: 'patreon',
     icon: 'globe',
   },
@@ -497,6 +480,15 @@ export const externalLinkSpec = [
   },
 
   {
+    match: {domain: 'youtube.com'},
+
+    platform: 'youtube',
+    handle: {pathname: /^@([^/]+)\/?$/},
+
+    icon: 'youtube',
+  },
+
+  {
     match: {domains: ['youtube.com', 'youtu.be']},
     platform: 'youtube',
     icon: 'youtube',