Test support Hollo

pull/597/head
Lim Chee Aun 2024-07-05 16:19:04 +08:00
rodzic cb9848fe8c
commit a72400febf
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -7,6 +7,7 @@ export default function isMastodonLinkMaybe(url) {
/^\/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
/^\/@[^/]+\/[a-z0-9]+[a-z0-9\-]+[a-z0-9]+$/i.test(pathname) || // Hollo
/#\/[^\/]+\.[^\/]+\/s\/.+/i.test(hash) // Phanpy 🫣
);
} catch (e) {