aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-19 16:41:41 -0700
committerfriendica <info@friendica.com>2015-03-19 16:41:41 -0700
commit274a30f2dbb31cd0b0987846b64345027aad20d0 (patch)
treecd7cb8d203dd0be8f351e606c71e395e46e97525
parent2010d6a33299dec10a8f85cde0944e5c245f9554 (diff)
downloadvolse-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.php5
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,