From 8f64d630ecd44477ea3af379d041bc6baec9279e Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 10 Mar 2023 17:30:42 -0800 Subject: [PATCH] share: fix jpeg on public link --- lib/Controller/ImageController.php | 2 ++ src/services/API.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Controller/ImageController.php b/lib/Controller/ImageController.php index f605ca58..6febdbfc 100644 --- a/lib/Controller/ImageController.php +++ b/lib/Controller/ImageController.php @@ -262,6 +262,8 @@ class ImageController extends ApiBase * * @NoCSRFRequired * + * @PublicPage + * * Get a full resolution JPEG for editing from a file. */ public function jpeg(string $id) diff --git a/src/services/API.ts b/src/services/API.ts index 442dd3c8..b9c21c40 100644 --- a/src/services/API.ts +++ b/src/services/API.ts @@ -107,7 +107,7 @@ export class API { } static IMAGE_JPEG(id: number) { - return gen(`${BASE}/image/jpeg/{id}`, { id }); + return tok(gen(`${BASE}/image/jpeg/{id}`, { id })); } static VIDEO_TRANSCODE(fileid: number, file = "index.m3u8") {