Merge pull request #568 from linkwarden/hotfix/title-fetching

minor fix
This commit is contained in:
Daniel 2024-04-17 18:31:40 -04:00 committed by GitHub
commit 49fbbe966c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,10 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
? await validateUrlSize(link.url)
: undefined;
if (validatedUrl === null)
if (
validatedUrl === null &&
process.env.IGNORE_URL_SIZE_LIMIT !== "true"
)
throw "Something went wrong while retrieving the file size.";
const contentType = validatedUrl?.get("content-type");