Try handle Threads' link

This commit is contained in:
Lim Chee Aun 2024-08-29 16:48:32 +08:00
parent f3895d09e3
commit a75e816e6c

View file

@ -5,6 +5,7 @@ const statusPostRegexes = [
/^\/@[^@\/]+\/(?:statuses|posts)\/([^\/]+)/i, // GoToSocial, Takahe
/\/notes\/([^\/]+)/i, // Misskey, Firefish
/^\/(?:notice|objects)\/([a-z0-9-]+)/i, // Pleroma
/\/@[^@\/]+\/post\/([^\/]+)/i, // Threads
/\/@[^@\/]+@?[^\/]+?\/([^\/]+)/i, // Mastodon
/^\/p\/[^\/]+\/([^\/]+)/i, // Pixelfed
];