This commit is contained in:
zotlabs
2017-05-08 02:00:00 -07:00
parent 1a05939e0b
commit 2e531c103f
3 changed files with 2 additions and 115 deletions

View File

@@ -159,7 +159,7 @@ class Photo extends \Zotlabs\Web\Controller {
if($r && intval($r[0]['photo_usage']) === PHOTO_COVER && $resolution >= PHOTO_RES_COVER_1200)
$allowed = 1;
$d = [ 'imgscale' => $resolution, 'resource_id' => $photo, 'photo' => $r[0], 'allowed' => $allowed ];
$d = [ 'imgscale' => $resolution, 'resource_id' => $photo, 'photo' => $r, 'allowed' => $allowed ];
call_hooks('get_photo',$d);
$resolution = $d['imgscale'];