Skip to content

Commit 2336dd2

Browse files
committed
fix: prioritize document URL over downloaded file URL in upload
Signed-off-by: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
1 parent c5f5327 commit 2336dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasks/uploadToMeedan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const UploadToMeedan: TaskConfig<'uploadToMeedan'> = {
9595
claimDescription: extraction.summary,
9696
factCheck: {
9797
title: extraction.summary,
98-
url: downloadedFile.url || document.docURL || '',
98+
url: document.url || document.docURL || downloadedFile.url || '',
9999
language: document.language || '',
100100
publish_report: false,
101101
},

0 commit comments

Comments
 (0)