aboutsummaryrefslogtreecommitdiffstats
path: root/mod/rpost.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/rpost.php')
-rw-r--r--mod/rpost.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/rpost.php b/mod/rpost.php
index d519a996b..69b8c7b7e 100644
--- a/mod/rpost.php
+++ b/mod/rpost.php
@@ -1,6 +1,6 @@
<?php /** @file */
-require_once('acl_selectors.php');
+require_once('include/acl_selectors.php');
require_once('include/crypto.php');
require_once('include/items.php');
require_once('include/taxonomy.php');
@@ -37,9 +37,9 @@ function rpost_content(&$a) {
// by the wretched beast called 'suhosin'. All the browsers now allow long GET requests, but suhosin
// blocks them.
- $url = get_rpost_path($a->get_observer());
+ $url = get_rpost_path(App::get_observer());
// make sure we're not looping to our own hub
- if(($url) && (! stristr($url, $a->get_hostname()))) {
+ if(($url) && (! stristr($url, App::get_hostname()))) {
foreach($_REQUEST as $key => $arg) {
$url .= '&' . $key . '=' . $arg;
}
@@ -92,10 +92,10 @@ function rpost_content(&$a) {
$_REQUEST['body'] = html2bbcode($_REQUEST['body']);
}
- $channel = $a->get_channel();
+ $channel = App::get_channel();
- $acl = new AccessList($channel);
+ $acl = new Zotlabs\Access\AccessList($channel);
$channel_acl = $acl->get();
@@ -111,7 +111,7 @@ function rpost_content(&$a) {
'default_location' => $channel['channel_location'],
'nickname' => $channel['channel_address'],
'lockstate' => (($acl->is_private()) ? 'lock' : 'unlock'),
- 'acl' => populate_acl($channel_acl),
+ 'acl' => populate_acl($channel_acl,true,(($channel['channel_r_stream'] & PERMS_PUBLIC) ? t('Public') : '')),
'bang' => '',
'visitor' => true,
'profile_uid' => local_channel(),