diff options
author | friendica <info@friendica.com> | 2013-11-15 03:10:00 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-15 03:10:00 -0800 |
commit | 0b8c9654ea7e9e9357c5af689ed8a0d11d38d2f7 (patch) | |
tree | f4c7b2ff1eebc2d1a4459e85722c0addf8560439 | |
parent | fc0a5d58d1defc55c556544f165c23e4c0779d53 (diff) | |
download | volse-hubzilla-0b8c9654ea7e9e9357c5af689ed8a0d11d38d2f7.tar.gz volse-hubzilla-0b8c9654ea7e9e9357c5af689ed8a0d11d38d2f7.tar.bz2 volse-hubzilla-0b8c9654ea7e9e9357c5af689ed8a0d11d38d2f7.zip |
allow rpost to set source app
-rw-r--r-- | include/conversation.php | 2 | ||||
-rw-r--r-- | mod/rpost.php | 2 | ||||
-rwxr-xr-x | view/tpl/jot.tpl | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php index e2a4a0723..fea53015e 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1130,7 +1130,7 @@ function status_editor($a,$x,$popup=false) { '$bang' => $x['bang'], '$profile_uid' => $x['profile_uid'], '$preview' => $preview, - '$sourceapp' => t($a->sourcename), + '$source' => ((x($x,'source')) ? $x['source'] : ''), '$jotplugins' => $jotplugins, '$defexpire' => '', '$feature_expire' => ((feature_enabled($x['profile_uid'],'content_expire') && (! $webpage)) ? 'block' : 'none'), 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' ); diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index cf65b976e..ef91f45be 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -7,6 +7,7 @@ <input type="hidden" name="location" id="jot-location" value="{{$defloc}}" /> <input type="hidden" name="expire" id="jot-expire" value="{{$defexpire}}" /> <input type="hidden" name="media_str" id="jot-media" value="" /> + <input type="hidden" name="source" id="jot-source" value="{{$source}}" /> <input type="hidden" name="coord" id="jot-coord" value="" /> <input type="hidden" name="post_id" value="{{$post_id}}" /> <input type="hidden" name="webpage" value="{{$webpage}}" /> |