kopia lustrzana https://github.com/cheeaun/phanpy
Handle Takahe links
rodzic
173cad2275
commit
b7416bc17d
|
@ -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
|
||||
);
|
||||
|
|
Ładowanie…
Reference in New Issue