From fe713edee92cb3d63f54015be7f2510a0c777dbb Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 27 Jun 2023 12:19:55 +0800 Subject: [PATCH] Unfurl Pleroma links --- src/utils/isMastodonLinkMaybe.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/isMastodonLinkMaybe.jsx b/src/utils/isMastodonLinkMaybe.jsx index 809d256b..bc3a31ef 100644 --- a/src/utils/isMastodonLinkMaybe.jsx +++ b/src/utils/isMastodonLinkMaybe.jsx @@ -3,6 +3,7 @@ export default function isMastodonLinkMaybe(url) { return ( /^\/.*\/\d+$/i.test(pathname) || /^\/@[^/]+\/statuses\/\w+$/i.test(pathname) || // GoToSocial - /^\/notes\/[a-z0-9]+$/i.test(pathname) // Misskey, Calckey + /^\/notes\/[a-z0-9]+$/i.test(pathname) || // Misskey, Calckey + /^\/(notice|objects)\/[a-z0-9-]+$/i.test(pathname) // Pleroma ); }