diff options
author | friendica <info@friendica.com> | 2015-03-19 16:41:41 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-03-19 16:41:41 -0700 |
commit | 274a30f2dbb31cd0b0987846b64345027aad20d0 (patch) | |
tree | cd7cb8d203dd0be8f351e606c71e395e46e97525 | |
parent | 2010d6a33299dec10a8f85cde0944e5c245f9554 (diff) | |
download | volse-hubzilla-274a30f2dbb31cd0b0987846b64345027aad20d0.tar.gz volse-hubzilla-274a30f2dbb31cd0b0987846b64345027aad20d0.tar.bz2 volse-hubzilla-274a30f2dbb31cd0b0987846b64345027aad20d0.zip |
call parse_url from rpost and add the result to the content body if invoked with a url argument
-rw-r--r-- | mod/rpost.php | 5 |
1 files changed, 5 insertions, 0 deletions
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, |