Render Misskey and Calckey QTs too

This commit is contained in:
Lim Chee Aun 2023-04-25 11:16:00 +08:00
parent 841737242f
commit 2b4efc6f04

View file

@ -1,3 +1,6 @@
export default function isMastodonLinkMaybe(url) { export default function isMastodonLinkMaybe(url) {
return /^https:\/\/.*\/\d+$/i.test(url); return (
/^https:\/\/.*\/\d+$/i.test(url) ||
/^https:\/\/.*\/notes\/[a-z0-9]+$/i.test(url) // Misskey, Calckey
);
} }