aboutsummaryrefslogtreecommitdiffstats
path: root/mod/rpost.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-15 03:10:00 -0800
committerfriendica <info@friendica.com>2013-11-15 03:10:00 -0800
commit0b8c9654ea7e9e9357c5af689ed8a0d11d38d2f7 (patch)
treef4c7b2ff1eebc2d1a4459e85722c0addf8560439 /mod/rpost.php
parentfc0a5d58d1defc55c556544f165c23e4c0779d53 (diff)
downloadvolse-hubzilla-0b8c9654ea7e9e9357c5af689ed8a0d11d38d2f7.tar.gz
volse-hubzilla-0b8c9654ea7e9e9357c5af689ed8a0d11d38d2f7.tar.bz2
volse-hubzilla-0b8c9654ea7e9e9357c5af689ed8a0d11d38d2f7.zip
allow rpost to set source app
Diffstat (limited to 'mod/rpost.php')
-rw-r--r--mod/rpost.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/rpost.php b/mod/rpost.php
index 820799218..8e01ef5d4 100644
--- a/mod/rpost.php
+++ b/mod/rpost.php
@@ -17,6 +17,7 @@ require_once('include/zot.php');
* f= placeholder, often required
* title= Title of post
* body= Body of post
+ * source= Source application
* remote_return= absolute URL to return after posting is finished
* type= choices are 'html' or 'bbcode', default is 'bbcode'
*
@@ -107,6 +108,7 @@ function rpost_content(&$a) {
'profile_uid' => local_user(),
'title' => $_REQUEST['title'],
'body' => $_REQUEST['body'],
+ 'source' => ((x($_REQUEST,'source')) ? strip_tags($_REQUEST['source']) : ''),
'return_path' => 'rpost/return'
);