mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 09:15:33 +03:00
Handle Takahe links
This commit is contained in:
parent
173cad2275
commit
b7416bc17d
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ export default function isMastodonLinkMaybe(url) {
|
|||
const { pathname } = new URL(url);
|
||||
return (
|
||||
/^\/.*\/\d+$/i.test(pathname) ||
|
||||
/^\/@[^/]+\/statuses\/\w+$/i.test(pathname) || // GoToSocial
|
||||
/^\/@[^/]+\/(statuses|posts)\/\w+\/?$/i.test(pathname) || // GoToSocial, Takahe
|
||||
/^\/notes\/[a-z0-9]+$/i.test(pathname) || // Misskey, Calckey
|
||||
/^\/(notice|objects)\/[a-z0-9-]+$/i.test(pathname) // Pleroma
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue