fromgplus: Initial working version

This commit is contained in:
Michael Vogel 2012-12-09 21:59:11 +01:00
parent ccac72ee0b
commit c8b2b1ca85
3 changed files with 265 additions and 76 deletions

View file

@ -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