mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 10:15:37 +03:00
Try resolve threads' links if they work one day
This commit is contained in:
parent
3fbecb2f0d
commit
901725793b
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ export default function isMastodonLinkMaybe(url) {
|
|||
/^\/(@[^/]+|users\/[^/]+)\/(statuses|posts)\/\w+\/?$/i.test(pathname) || // GoToSocial, Takahe
|
||||
/^\/notes\/[a-z0-9]+$/i.test(pathname) || // Misskey, Firefish
|
||||
/^\/(notice|objects)\/[a-z0-9-]+$/i.test(pathname) || // Pleroma
|
||||
/^\/@[^/]+\/post\/[a-z0-9]+$/i.test(pathname) || // Threads
|
||||
/#\/[^\/]+\.[^\/]+\/s\/.+/i.test(hash) // Phanpy 🫣
|
||||
);
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue