whitespace
This commit is contained in:
parent
c364bff0c1
commit
aec92e0e17
@ -90,8 +90,6 @@ class Rpost extends \Zotlabs\Web\Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$plaintext = true;
|
$plaintext = true;
|
||||||
// if(feature_enabled(local_channel(),'richtext'))
|
|
||||||
// $plaintext = false;
|
|
||||||
|
|
||||||
if(array_key_exists('type', $_REQUEST) && $_REQUEST['type'] === 'html') {
|
if(array_key_exists('type', $_REQUEST) && $_REQUEST['type'] === 'html') {
|
||||||
require_once('include/html2bbcode.php');
|
require_once('include/html2bbcode.php');
|
||||||
@ -112,26 +110,25 @@ class Rpost extends \Zotlabs\Web\Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$x = array(
|
$x = array(
|
||||||
'is_owner' => true,
|
'is_owner' => true,
|
||||||
'allow_location' => ((intval(get_pconfig($channel['channel_id'],'system','use_browser_location'))) ? '1' : ''),
|
'allow_location' => ((intval(get_pconfig($channel['channel_id'],'system','use_browser_location'))) ? '1' : ''),
|
||||||
'default_location' => $channel['channel_location'],
|
'default_location' => $channel['channel_location'],
|
||||||
'nickname' => $channel['channel_address'],
|
'nickname' => $channel['channel_address'],
|
||||||
'lockstate' => (($acl->is_private()) ? 'lock' : 'unlock'),
|
'lockstate' => (($acl->is_private()) ? 'lock' : 'unlock'),
|
||||||
'acl' => populate_acl($channel_acl, true, \Zotlabs\Lib\PermissionDescription::fromGlobalPermission('view_stream'), get_post_aclDialogDescription(), 'acl_dialog_post'),
|
'acl' => populate_acl($channel_acl, true, \Zotlabs\Lib\PermissionDescription::fromGlobalPermission('view_stream'), get_post_aclDialogDescription(), 'acl_dialog_post'),
|
||||||
'permissions' => $channel_acl,
|
'permissions' => $channel_acl,
|
||||||
'bang' => '',
|
'bang' => '',
|
||||||
'visitor' => true,
|
'visitor' => true,
|
||||||
'profile_uid' => local_channel(),
|
'profile_uid' => local_channel(),
|
||||||
'title' => $_REQUEST['title'],
|
'title' => $_REQUEST['title'],
|
||||||
'body' => $_REQUEST['body'],
|
'body' => $_REQUEST['body'],
|
||||||
'attachment' => $_REQUEST['attachment'],
|
'attachment' => $_REQUEST['attachment'],
|
||||||
'source' => ((x($_REQUEST,'source')) ? strip_tags($_REQUEST['source']) : ''),
|
'source' => ((x($_REQUEST,'source')) ? strip_tags($_REQUEST['source']) : ''),
|
||||||
'return_path' => 'rpost/return',
|
'return_path' => 'rpost/return',
|
||||||
'bbco_autocomplete' => 'bbcode',
|
'bbco_autocomplete' => 'bbcode',
|
||||||
'editor_autocomplete'=> true,
|
'editor_autocomplete' => true,
|
||||||
'bbcode' => true,
|
'bbcode' => true,
|
||||||
'jotnets' => true
|
'jotnets' => true
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$editor = status_editor($a,$x);
|
$editor = status_editor($a,$x);
|
||||||
|
Reference in New Issue
Block a user