]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
Fix Issue 5252
[friendica.git] / mod / community.php
index 40ebdbb6e011f2aa5cea9a9f0a55523da7815d8b..59be7487bdca55a8318410b80e4eeab16f2dc199 100644 (file)
@@ -30,6 +30,11 @@ function community_content(App $a, $update = 0)
 
        $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 {
@@ -166,7 +171,7 @@ function community_content(App $a, $update = 0)
                $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));