/**
* @file mod/community.php
*/
+
use Friendica\App;
use Friendica\Content\Nav;
+use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
$page_style = Config::get('system', 'community_page_style');
+ if ($page_style == CP_NO_INTERNAL_COMMUNITY) {
+ notice(L10n::t('Access denied.') . EOL);
+ return;
+ }
+
if ($a->argc > 1) {
$content = $a->argv[1];
} else {
'default_location' => $a->user['default-location'],
'nickname' => $a->user['nickname'],
'lockstate' => (is_array($a->user) && (strlen($a->user['allow_cid']) || strlen($a->user['allow_gid']) || strlen($a->user['deny_cid']) || strlen($a->user['deny_gid'])) ? 'lock' : 'unlock'),
- 'acl' => populate_acl($a->user, true),
+ 'acl' => ACL::getFullSelectorHTML($a->user, true),
'bang' => '',
'visitor' => 'block',
'profile_uid' => local_user(),
$s = $r;
}
- $o .= conversation($a, $s, 'community', $update);
+ $o .= conversation($a, $s, 'community', $update, false, 'commented', local_user());
if (!$update) {
$o .= alt_pager($a, count($r));