Try resolve threads' links if they work one day

This commit is contained in:
Lim Chee Aun 2024-06-08 21:36:09 +08:00
parent 3fbecb2f0d
commit 901725793b

View file

@ -6,6 +6,7 @@ export default function isMastodonLinkMaybe(url) {
/^\/(@[^/]+|users\/[^/]+)\/(statuses|posts)\/\w+\/?$/i.test(pathname) || // GoToSocial, Takahe
/^\/notes\/[a-z0-9]+$/i.test(pathname) || // Misskey, Firefish
/^\/(notice|objects)\/[a-z0-9-]+$/i.test(pathname) || // Pleroma
/^\/@[^/]+\/post\/[a-z0-9]+$/i.test(pathname) || // Threads
/#\/[^\/]+\.[^\/]+\/s\/.+/i.test(hash) // Phanpy 🫣
);
} catch (e) {