From 274a30f2dbb31cd0b0987846b64345027aad20d0 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 19 Mar 2015 16:41:41 -0700 Subject: call parse_url from rpost and add the result to the content body if invoked with a url argument --- mod/rpost.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod/rpost.php') diff --git a/mod/rpost.php b/mod/rpost.php index 2bea18c43..398d2bf0f 100644 --- a/mod/rpost.php +++ b/mod/rpost.php @@ -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( 'is_owner' => true, -- cgit v1.2.3