mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 22:35:18 +00:00
Always open rpost editor on document ready
This commit is contained in:
parent
1d09e4b620
commit
2312f03eac
2 changed files with 7 additions and 9 deletions
|
@ -94,15 +94,13 @@ function rpost_content(&$a) {
|
|||
|
||||
$channel = $a->get_channel();
|
||||
|
||||
$channel_acl = array(
|
||||
'allow_cid' => $channel['channel_allow_cid'],
|
||||
'allow_gid' => $channel['channel_allow_gid'],
|
||||
'deny_cid' => $channel['channel_deny_cid'],
|
||||
'deny_gid' => $channel['channel_deny_gid']
|
||||
);
|
||||
|
||||
$acl = new AccessList($channel);
|
||||
|
||||
$channel_acl = $acl->get();
|
||||
|
||||
if($_REQUEST['url']) {
|
||||
$x = z_fetch_url(z_root() . '/urlinfo?f=&url=' . urlencode($_REQUEST['url']));
|
||||
$x = z_fetch_url(z_root() . '/linkinfo?f=&url=' . urlencode($_REQUEST['url']));
|
||||
if($x['success'])
|
||||
$_REQUEST['body'] = $_REQUEST['body'] . $x['body'];
|
||||
}
|
||||
|
@ -112,8 +110,7 @@ function rpost_content(&$a) {
|
|||
'allow_location' => ((intval(get_pconfig($channel['channel_id'],'system','use_browser_location'))) ? '1' : ''),
|
||||
'default_location' => $channel['channel_location'],
|
||||
'nickname' => $channel['channel_address'],
|
||||
'lockstate' => (($channel['channel_allow_cid'] || $channel['channel_allow_gid']
|
||||
|| $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
|
||||
'lockstate' => (($acl->is_private()) ? 'lock' : 'unlock'),
|
||||
'acl' => populate_acl($channel_acl),
|
||||
'bang' => '',
|
||||
'visitor' => true,
|
||||
|
|
1
view/js/mod_rpost.js
Normal file
1
view/js/mod_rpost.js
Normal file
|
@ -0,0 +1 @@
|
|||
$(document).ready(function() { initEditor(); });
|
Loading…
Reference in a new issue