From 8e6ff32c97fe6abbbc93e3d7d2769142c285b948 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 2 Dec 2016 23:09:25 -0800 Subject: more api work for item/store and doco --- include/api_zot.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/api_zot.php') diff --git a/include/api_zot.php b/include/api_zot.php index 8d6041408..2bbae244c 100644 --- a/include/api_zot.php +++ b/include/api_zot.php @@ -360,11 +360,10 @@ if(x($_FILES,'media')) { $_FILES['userfile'] = $_FILES['media']; // upload the image if we have one - $_REQUEST['silent']='1'; //tell wall_upload function to return img info instead of echo - $mod = new Zotlabs\Module\Wall_upload(); + $mod = new Zotlabs\Module\Wall_attach(); $media = $mod->post(); - if(strlen($media)>0) - $_REQUEST['body'] .= "\n\n".$media; + if($media) + $_REQUEST['body'] .= "\n\n" . $media; } $mod = new Zotlabs\Module\Item(); -- cgit v1.2.3