Add support for Twitter and Telegram

This commit is contained in:
Lachlan Kermode
2022-03-06 19:34:12 -05:00
parent b9eac1ce9a
commit 4113c04830
8 changed files with 142 additions and 13 deletions

View File

@@ -323,6 +323,13 @@ export function typeForPath(path) {
case /\.(pdf)$/.test(path):
type = "Document";
break;
case /.+(twitter\.com).+/.test(path):
type = "Tweet";
break;
case /.+(t\.me).+/.test(path):
type = "Telegram";
break;
default:
type = "Unknown";
break;