« get me outta code hell

external-links, test: fix up Tumblr, Twitter - 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:
author(quasar) nebula <qznebula@protonmail.com>2024-03-30 11:04:41 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-03-30 11:05:29 -0300
commit3989d93998683167fe61c800f884b68f1467be05 (patch)
tree915bc9a9c7fd7bdc73148185359b4d76b11ca09a /src/util
parentf304c39057087bce56fc895fc7237761543066a0 (diff)
external-links, test: fix up Tumblr, Twitter
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 512ac16..9130cac 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',