From 2b4efc6f040c8304294e21bd2ed10f24fb5a6fe5 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 25 Apr 2023 11:16:00 +0800 Subject: [PATCH] Render Misskey and Calckey QTs too --- src/utils/isMastodonLinkMaybe.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/isMastodonLinkMaybe.jsx b/src/utils/isMastodonLinkMaybe.jsx index d6fa8eda..ea63202b 100644 --- a/src/utils/isMastodonLinkMaybe.jsx +++ b/src/utils/isMastodonLinkMaybe.jsx @@ -1,3 +1,6 @@ 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 + ); }