mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
fromgplus: Initial working version
This commit is contained in:
parent
ccac72ee0b
commit
c8b2b1ca85
3 changed files with 265 additions and 76 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue