From c71a3065a7285b3d8406ccd9b7c47280669242c2 Mon Sep 17 00:00:00 2001 From: JanisPlayer <54918417+JanisPlayer@users.noreply.github.com> Date: Mon, 22 May 2023 18:10:49 +0200 Subject: Allow to specify an imaginary key Signed-off-by: JanisPlayer <54918417+JanisPlayer@users.noreply.github.com> --- lib/private/Preview/Imaginary.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/Preview/Imaginary.php b/lib/private/Preview/Imaginary.php index ed8b9eaa838..74f04e09250 100644 --- a/lib/private/Preview/Imaginary.php +++ b/lib/private/Preview/Imaginary.php @@ -136,9 +136,10 @@ class Imaginary extends ProviderV2 { ]; try { + $imaginaryKey = $this->config->getSystemValueString('preview_imaginary_key', ''); $response = $httpClient->post( $imaginaryUrl . '/pipeline', [ - 'query' => ['operations' => json_encode($operations)], + 'query' => ['operations' => json_encode($operations), 'key' => $imaginaryKey], 'stream' => true, 'content-type' => $file->getMimeType(), 'body' => $stream, -- cgit v1.2.3