Merge pull request #431 from linkwarden/main

main
This commit is contained in:
Daniel 2024-01-17 20:53:24 +03:30 committed by GitHub
commit dfe9fec4b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,12 +67,6 @@ export default async function postLink(
const validatedUrl = link.url ? await validateUrlSize(link.url) : undefined; 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"); const contentType = validatedUrl?.get("content-type");
let linkType = "url"; let linkType = "url";
let imageExtension = "png"; let imageExtension = "png";