iOS: fix for PDF downloads, always use the download signed URL, not the original URL

This commit is contained in:
Jackson Harper
2023-10-24 11:43:05 +08:00
parent 4e2e23c570
commit d7bd5c54a3
10 changed files with 17 additions and 8 deletions

View File

@ -96,7 +96,7 @@ final class PDFViewerViewModel: ObservableObject {
}
}
return try await dataService.loadPDFData(slug: pdfItem.slug, pageURLString: pdfItem.originalArticleURL)
return try await dataService.loadPDFData(slug: pdfItem.slug, downloadURL: pdfItem.downloadURL)
} catch {
print("error downloading PDF", error)
return nil