share: fix jpeg on public link

pull/474/head
Varun Patil 2023-03-10 17:30:42 -08:00
parent 4ca57bbbe1
commit 8f64d630ec
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

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