]> git.mxchange.org Git - friendica.git/commitdiff
datasize not meaningful when all size are returned in api/friendica/photo
authorfabrixxm <fabrix.xm@gmail.com>
Mon, 28 Dec 2015 08:45:23 +0000 (09:45 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Mon, 28 Dec 2015 09:23:06 +0000 (10:23 +0100)
include/api.php

index 8a84d895f48a711b178ed810e7cfdbac8f5d9b80..d2d010c72754ff1bbccc29e8a7a44eb11eae80ab 100644 (file)
                        $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++) {