diff options
author | JanisPlayer <54918417+JanisPlayer@users.noreply.github.com> | 2023-05-22 18:10:49 +0200 |
---|---|---|
committer | JanisPlayer <54918417+JanisPlayer@users.noreply.github.com> | 2023-05-22 22:19:51 +0200 |
commit | c71a3065a7285b3d8406ccd9b7c47280669242c2 (patch) | |
tree | 84a51089c42b982d54bebc71a1855f8bdedd9362 /lib/private/Preview | |
parent | 822c872c75510b17ac5afb3937d047a53bff3aa7 (diff) | |
download | nextcloud-server-c71a3065a7285b3d8406ccd9b7c47280669242c2.tar.gz nextcloud-server-c71a3065a7285b3d8406ccd9b7c47280669242c2.zip |
Allow to specify an imaginary key
Signed-off-by: JanisPlayer <54918417+JanisPlayer@users.noreply.github.com>
Diffstat (limited to 'lib/private/Preview')
-rw-r--r-- | lib/private/Preview/Imaginary.php | 3 |
1 files changed, 2 insertions, 1 deletions
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, |