mirror of
https://github.com/friendica/friendica
synced 2025-04-26 08:30:10 +00:00
better handling of api comments/replies
This commit is contained in:
parent
0c9f033505
commit
b0a9ec0a73
2 changed files with 29 additions and 6 deletions
|
@ -401,8 +401,16 @@
|
|||
|
||||
// convert $_POST array items to the form we use for web posts.
|
||||
|
||||
// logger('api_post: ' . print_r($_POST,true));
|
||||
|
||||
$_POST['body'] = urldecode(requestdata('status'));
|
||||
$_POST['parent'] = requestdata('in_reply_to_status_id');
|
||||
|
||||
$parent = requestdata('in_reply_to_status_id');
|
||||
if(ctype_digit($parent))
|
||||
$_POST['parent'] = $parent;
|
||||
else
|
||||
$_POST['parent_uri'] = $parent;
|
||||
|
||||
if(requestdata('lat') && requestdata('long'))
|
||||
$_POST['coord'] = sprintf("%s %s",requestdata('lat'),requestdata('long'));
|
||||
$_POST['profile_uid'] = local_user();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue