call parse_url from rpost and add the result to the content body if invoked with a url argument

This commit is contained in:
friendica 2015-03-19 16:41:41 -07:00
parent 2010d6a332
commit 274a30f2db

View File

@ -107,6 +107,11 @@ function rpost_content(&$a) {
// )); // ));
if($_REQUEST['url']) {
$x = z_fetch_url(z_root() . '/parse_url?f=&url=' . urlencode($_REQUEST['url']));
if($x['success'])
$_REQUEST['body'] = $_REQUEST['body'] . $x['body'];
}
$x = array( $x = array(
'is_owner' => true, 'is_owner' => true,