mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-13 05:48:36 +03:00
Add support for Twitter and Telegram
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user