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
1 changed files with 2 additions and 0 deletions

View File

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