aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-02 23:09:25 -0800
committerzotlabs <mike@macgirvin.com>2016-12-02 23:09:25 -0800
commit8e6ff32c97fe6abbbc93e3d7d2769142c285b948 (patch)
tree91c665eabf759ee99d0f9366ccf34a082394b5e3 /include
parent23acd2738b7eca2c8d28c467d5e2baec7a6e9a36 (diff)
downloadvolse-hubzilla-8e6ff32c97fe6abbbc93e3d7d2769142c285b948.tar.gz
volse-hubzilla-8e6ff32c97fe6abbbc93e3d7d2769142c285b948.tar.bz2
volse-hubzilla-8e6ff32c97fe6abbbc93e3d7d2769142c285b948.zip
more api work for item/store and doco
Diffstat (limited to 'include')
-rw-r--r--include/api_zot.php7
1 files changed, 3 insertions, 4 deletions
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();