fix: correct external url check condition in readFiles (#6003)

This commit is contained in:
Roy
2025-11-28 11:13:11 +08:00
committed by GitHub
parent 88805564ad
commit ac1a07d91c

View File

@@ -199,7 +199,7 @@ export const getFileContentFromLinks = async ({
const buffer = Buffer.from(response.data, 'binary');
const urlObj = new URL(url, 'http://localhost:3000');
const isChatExternalUrl = urlObj.pathname.startsWith(
const isChatExternalUrl = !urlObj.pathname.startsWith(
`/${S3Buckets.private}/${S3Sources.chat}/`
);