From: fabrixxm Date: Mon, 28 Dec 2015 08:45:23 +0000 (+0100) Subject: datasize not meaningful when all size are returned in api/friendica/photo X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=79c32105fc92d5dab371b2feb41be3a9b37f344f;p=friendica.git datasize not meaningful when all size are returned in api/friendica/photo --- diff --git a/include/api.php b/include/api.php index 8a84d895f4..d2d010c727 100644 --- a/include/api.php +++ b/include/api.php @@ -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++) {