Unfurl Pleroma links

This commit is contained in:
Lim Chee Aun 2023-06-27 12:19:55 +08:00
parent efc3b08c90
commit fe713edee9

View file

@ -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
);
}