From 901725793b1d9f840af8d4cc4c7c07974465a771 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 8 Jun 2024 21:36:09 +0800 Subject: [PATCH] Try resolve threads' links if they work one day --- src/utils/isMastodonLinkMaybe.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/isMastodonLinkMaybe.jsx b/src/utils/isMastodonLinkMaybe.jsx index 78873536..a4e87f80 100644 --- a/src/utils/isMastodonLinkMaybe.jsx +++ b/src/utils/isMastodonLinkMaybe.jsx @@ -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) {