mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 10:45:41 +03:00
Unfurl Pleroma links
This commit is contained in:
parent
efc3b08c90
commit
fe713edee9
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue