Commit 3f4eccfe authored by Sebastian Castro's avatar Sebastian Castro

Fix manifest for external file

parent 768c9155
......@@ -44,7 +44,8 @@ class APIController extends GoGoController
$imgUrl = $img->getImageUrl('512x512', 'png');
try {
if (!$img->isExternalFile()) $imageData = InterventionImage::make($img->calculateFilePath('512x512', 'png'));
} catch (\Exception $error) {}
else $imageData = InterventionImage::make($imgUrl);
} catch (\Exception $error) { }
}
if (!$imageData) {
$imgUrl = $this->getRequest()->getUriForPath('/assets/img/default-icon.png');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment