Skip to content

Commit

Permalink
Fix: Remove debug uri
Browse files Browse the repository at this point in the history
  • Loading branch information
markusguenther committed Jul 14, 2020
1 parent 278cc75 commit 54d845f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Classes/Service/ThumbnailGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ThumbnailGenerator
public function submitThumbnailToFilePreviewApi($thumbnail)
{
$originalResource = $thumbnail->getOriginalAsset()->getResource();
$uri = 'https://file-examples-com.github.io/uploads/2017/02/file-sample_100kB.docx';//$this->resourceManager->getPublicPersistentResourceUri($originalResource);
$uri =$this->resourceManager->getPublicPersistentResourceUri($originalResource);
$width = $thumbnail->getConfigurationValue('width') ?: $thumbnail->getConfigurationValue('maximumWidth');
$height = $thumbnail->getConfigurationValue('height') ?: $thumbnail->getConfigurationValue('maximumHeight');

Expand All @@ -77,8 +77,6 @@ public function submitThumbnailToFilePreviewApi($thumbnail)
if ($response->status === self::API_STATUS_PENDING) {
$responseIdentifier = $response->id;
$this->fetchThumbnailFromFilePreviewApi($responseIdentifier, $thumbnail);
} else {
// @Todo error handling
}
}

Expand Down

0 comments on commit 54d845f

Please sign in to comment.