diff --git a/packages/client/src/components/MkUrlPreview.vue b/packages/client/src/components/MkUrlPreview.vue index fe5c37b0d3..f649405479 100644 --- a/packages/client/src/components/MkUrlPreview.vue +++ b/packages/client/src/components/MkUrlPreview.vue @@ -135,7 +135,7 @@ const embedId = `embed${Math.random().toString().replace(/\D/, "")}`; let tweetHeight = ref(150); const requestUrl = new URL(props.url); -if (!["http:", "https:", "gopher:", "gemini:", "matrix:", "ipfs:", "ipns:"].includes(requestUrl.protocol)) +if (!["http:", "https:", "gopher:", "gemini:", "matrix:", "ipfs:", "ipns:", "finger:"].includes(requestUrl.protocol)) throw new Error("invalid url"); if ( diff --git a/packages/client/src/components/global/MkUrl.vue b/packages/client/src/components/global/MkUrl.vue index f06a494079..75be6ccd07 100644 --- a/packages/client/src/components/global/MkUrl.vue +++ b/packages/client/src/components/global/MkUrl.vue @@ -46,7 +46,7 @@ const props = defineProps<{ const self = props.url.startsWith(local); const url = parseUri(props.url); -if (!["http", "https", "gopher", "gemini", "matrix", "ipfs", "ipns"].includes(url.scheme)) throw new Error("invalid url"); +if (!["http", "https", "gopher", "gemini", "matrix", "ipfs", "ipns", "finger"].includes(url.scheme)) throw new Error("invalid url"); const el = ref(); useTooltip(el, (showing) => {