]> git.mxchange.org Git - friendica-addons.git/blobdiff - statusnet/statusnet.php
fromgplus: Initial working version
[friendica-addons.git] / statusnet / statusnet.php
index 9bbe4dcd19bae6846a0827578f151d3152b83983..09d01c4f4e4e1fadbd4befe3c9b0b9a7a96a6b25 100755 (executable)
@@ -620,7 +620,7 @@ function statusnet_post_hook(&$a,&$b) {
                        $image = $msgarr["image"];
                        if ($image != "") {
                                $imagedata = file_get_contents($image);
-                               $tempfile = tempnam("", "upload");
+                               $tempfile = tempnam(get_config("system","temppath"), "upload");
                                file_put_contents($tempfile, $imagedata);
                                $postdata = array("status"=>$msg, "media"=>"@".$tempfile);
                        } else