]> git.mxchange.org Git - friendica.git/commitdiff
API - /media/upload - add return value #6272
authorroot <17hado.com@gmail.com>
Sat, 15 Dec 2018 20:15:55 +0000 (20:15 +0000)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 14:12:33 +0000 (09:12 -0500)
  image.preview: string (url for small image)

include/api.php

index 9c184411034eb7c2a7abd1414956105c091ff1a8..8a89d00d773cd7ebc354bc5d2c1f44c30e9b4484 100644 (file)
@@ -1242,8 +1242,9 @@ function api_media_upload()
        $returndata["media_id_string"] = (string)$media["id"];
        $returndata["size"] = $media["size"];
        $returndata["image"] = ["w" => $media["width"],
-                                       "h" => $media["height"],
-                                       "image_type" => $media["type"]];
+                               "h" => $media["height"],
+                               "image_type" => $media["type"],
+                               "preview" => $media["preview"]];
 
        Logger::log("Media uploaded: " . print_r($returndata, true), Logger::DEBUG);