diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/external-links.js | 44 |
1 files changed, 18 insertions, 26 deletions
diff --git a/src/util/external-links.js b/src/util/external-links.js index edef0701..503512f3 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', |