diff options
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 |
commit | 3989d93998683167fe61c800f884b68f1467be05 (patch) | |
tree | 915bc9a9c7fd7bdc73148185359b4d76b11ca09a /src | |
parent | f304c39057087bce56fc895fc7237761543066a0 (diff) |
external-links, test: fix up Tumblr, Twitter
Diffstat (limited to 'src')
-rw-r--r-- | src/util/external-links.js | 21 |
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', |