Commit a3f726ba authored by Mario's avatar Mario Committed by Mario

fix embedphotos image size


(cherry picked from commit ebc2b23c)
parent e4ca3609
Pipeline #140748 passed with stages
in 6 minutes and 23 seconds
......@@ -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),
......
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