]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
Merge pull request #7810 from annando/diaspora-add-contact
[friendica.git] / mod / community.php
index 3cafced5426469192c3fbfa3d4260e461fcb4f32..81857c6d3a0d64a3cacd78940a0864bf20edaf35 100644 (file)
@@ -17,19 +17,11 @@ use Friendica\Database\DBA;
 use Friendica\Model\Item;
 use Friendica\Model\User;
 
-function community_init(App $a)
-{
-       if (!local_user()) {
-               unset($_SESSION['theme']);
-               unset($_SESSION['mobile-theme']);
-       }
-}
-
 function community_content(App $a, $update = 0)
 {
        $o = '';
 
-       if (Config::get('system', 'block_public') && !local_user() && !remote_user()) {
+       if (Config::get('system', 'block_public') && !Session::isAuthenticated()) {
                notice(L10n::t('Public access denied.') . EOL);
                return;
        }