diff options
author | friendica <redmatrix@redmatrix.me> | 2015-04-16 15:41:43 -0700 |
---|---|---|
committer | friendica <redmatrix@redmatrix.me> | 2015-04-16 15:41:43 -0700 |
commit | 507d04a98772ca73d9d1c1b4fb324159cff1d8ae (patch) | |
tree | c506762303a8f5940b3d443b6675a7a3c9fa8c68 /mod/rpost.php | |
parent | f09df061303f2f237865441a8d1dde133b33f5f2 (diff) | |
parent | 10cc643f650b5ff0954ff988fbf768ea5e061571 (diff) | |
download | volse-hubzilla-507d04a98772ca73d9d1c1b4fb324159cff1d8ae.tar.gz volse-hubzilla-507d04a98772ca73d9d1c1b4fb324159cff1d8ae.tar.bz2 volse-hubzilla-507d04a98772ca73d9d1c1b4fb324159cff1d8ae.zip |
Merge https://github.com/redmatrix/redmatrix into pending_merge
Diffstat (limited to 'mod/rpost.php')
-rw-r--r-- | mod/rpost.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mod/rpost.php b/mod/rpost.php index 10ae6b8ab..737d705f6 100644 --- a/mod/rpost.php +++ b/mod/rpost.php @@ -94,6 +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'] + ); + $o .= replace_macros(get_markup_template('edpost_head.tpl'), array( '$title' => t('Edit post') )); @@ -111,12 +118,13 @@ function rpost_content(&$a) { 'nickname' => $channel['channel_address'], 'lockstate' => (($channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'), - 'acl' => populate_acl($channel), + 'acl' => populate_acl($channel_acl), 'bang' => '', 'visitor' => true, 'profile_uid' => local_channel(), 'title' => $_REQUEST['title'], 'body' => $_REQUEST['body'], + 'attachment' => $_REQUEST['attachment'], 'source' => ((x($_REQUEST,'source')) ? strip_tags($_REQUEST['source']) : ''), 'return_path' => 'rpost/return' ); |