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") {