1
0
Fork 0

datasize not meaningful when all size are returned in api/friendica/photo

This commit is contained in:
fabrixxm 2015-12-28 09:45:23 +01:00
parent 0664ace260
commit 79c32105fc

View file

@ -2873,6 +2873,8 @@
$data = array('photo' => $r[0]); $data = array('photo' => $r[0]);
if ($scale !== false) { if ($scale !== false) {
$data['photo']['data'] = base64_encode($data['photo']['data']); $data['photo']['data'] = base64_encode($data['photo']['data']);
} else {
unset($data['photo']['datasize']); //needed only with scale param
} }
$data['photo']['link'] = array(); $data['photo']['link'] = array();
for($k=intval($data['photo']['minscale']); $k<=intval($data['photo']['maxscale']); $k++) { for($k=intval($data['photo']['minscale']); $k<=intval($data['photo']['maxscale']); $k++) {