diff --git a/lib/api/controllers/links/postLink.ts b/lib/api/controllers/links/postLink.ts index 2877c81..1c82fc2 100644 --- a/lib/api/controllers/links/postLink.ts +++ b/lib/api/controllers/links/postLink.ts @@ -67,12 +67,6 @@ export default async function postLink( const validatedUrl = link.url ? await validateUrlSize(link.url) : undefined; - if (validatedUrl === null) - return { - response: "Something went wrong while retrieving the file size.", - status: 400, - }; - const contentType = validatedUrl?.get("content-type"); let linkType = "url"; let imageExtension = "png";