allow rpost to set source app
This commit is contained in:
parent
fc0a5d58d1
commit
0b8c9654ea
@ -1130,7 +1130,7 @@ function status_editor($a,$x,$popup=false) {
|
|||||||
'$bang' => $x['bang'],
|
'$bang' => $x['bang'],
|
||||||
'$profile_uid' => $x['profile_uid'],
|
'$profile_uid' => $x['profile_uid'],
|
||||||
'$preview' => $preview,
|
'$preview' => $preview,
|
||||||
'$sourceapp' => t($a->sourcename),
|
'$source' => ((x($x,'source')) ? $x['source'] : ''),
|
||||||
'$jotplugins' => $jotplugins,
|
'$jotplugins' => $jotplugins,
|
||||||
'$defexpire' => '',
|
'$defexpire' => '',
|
||||||
'$feature_expire' => ((feature_enabled($x['profile_uid'],'content_expire') && (! $webpage)) ? 'block' : 'none'),
|
'$feature_expire' => ((feature_enabled($x['profile_uid'],'content_expire') && (! $webpage)) ? 'block' : 'none'),
|
||||||
|
@ -17,6 +17,7 @@ require_once('include/zot.php');
|
|||||||
* f= placeholder, often required
|
* f= placeholder, often required
|
||||||
* title= Title of post
|
* title= Title of post
|
||||||
* body= Body of post
|
* body= Body of post
|
||||||
|
* source= Source application
|
||||||
* remote_return= absolute URL to return after posting is finished
|
* remote_return= absolute URL to return after posting is finished
|
||||||
* type= choices are 'html' or 'bbcode', default is 'bbcode'
|
* type= choices are 'html' or 'bbcode', default is 'bbcode'
|
||||||
*
|
*
|
||||||
@ -107,6 +108,7 @@ function rpost_content(&$a) {
|
|||||||
'profile_uid' => local_user(),
|
'profile_uid' => local_user(),
|
||||||
'title' => $_REQUEST['title'],
|
'title' => $_REQUEST['title'],
|
||||||
'body' => $_REQUEST['body'],
|
'body' => $_REQUEST['body'],
|
||||||
|
'source' => ((x($_REQUEST,'source')) ? strip_tags($_REQUEST['source']) : ''),
|
||||||
'return_path' => 'rpost/return'
|
'return_path' => 'rpost/return'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
<input type="hidden" name="location" id="jot-location" value="{{$defloc}}" />
|
<input type="hidden" name="location" id="jot-location" value="{{$defloc}}" />
|
||||||
<input type="hidden" name="expire" id="jot-expire" value="{{$defexpire}}" />
|
<input type="hidden" name="expire" id="jot-expire" value="{{$defexpire}}" />
|
||||||
<input type="hidden" name="media_str" id="jot-media" value="" />
|
<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="coord" id="jot-coord" value="" />
|
||||||
<input type="hidden" name="post_id" value="{{$post_id}}" />
|
<input type="hidden" name="post_id" value="{{$post_id}}" />
|
||||||
<input type="hidden" name="webpage" value="{{$webpage}}" />
|
<input type="hidden" name="webpage" value="{{$webpage}}" />
|
||||||
|
Reference in New Issue
Block a user