« 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
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/external-links.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/util/external-links.js b/src/util/external-links.js
index 512ac165..9130cacc 100644
--- a/src/util/external-links.js
+++ b/src/util/external-links.js
@@ -456,6 +456,21 @@ export const externalLinkSpec = [
   },
 
   {
+    match: {domain: 'tumblr.com'},
+
+    platform: 'tumblr',
+    handle: {pathname: /^[^/]+\/?$/},
+
+    icon: 'tumblr',
+  },
+
+  {
+    match: {domain: 'tumblr.com'},
+    platform: 'tumblr',
+    icon: 'tumblr',
+  },
+
+  {
     match: {domain: 'twitch.tv'},
 
     platform: 'twitch',
@@ -474,6 +489,12 @@ export const externalLinkSpec = [
   },
 
   {
+    match: {domain: 'twitter.com'},
+    platform: 'twitter',
+    icon: 'twitter',
+  },
+
+  {
     match: {domains: ['wikipedia.org', '.wikipedia.org']},
     platform: 'wikipedia',
     icon: 'misc',