fix embedphotos image size

(cherry picked from commit ebc2b23c3a)
This commit is contained in:
Mario Vavti 2019-06-07 06:45:08 +00:00 committed by Mario
parent e4ca3609d9
commit a3f726baa8

View File

@ -53,7 +53,7 @@ class Embedphotos extends \Zotlabs\Web\Controller {
$channel = \App::get_channel();
$output = EMPTY_STR;
if($channel) {
$resolution = ((feature_enabled($channel['channel_id'],'large_photos')) ? 2 : 3);
$resolution = ((feature_enabled($channel['channel_id'],'large_photos')) ? 1 : 2);
$r = q("select mimetype, height, width from photo where resource_id = '%s' and $resolution = %d and uid = %d limit 1",
dbesc($resource),
intval($resolution),