]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/vier/theme.php
Merge pull request #12298 from annando/api-suggestions
[friendica.git] / view / theme / vier / theme.php
index 28c5c3e86308fdb975c5595aa4ebf2a77fe40fed..062e4a105c2e2324c7416bf1708c2a22eba9b348 100644 (file)
@@ -106,7 +106,7 @@ EOT;
 
        // Hide the left menu bar
        /// @TODO maybe move this static array out where it should belong?
-       if (empty(DI::page()['aside']) && in_array($args->get(0), ["community", "events", "help", "delegation", "notifications",
+       if (empty(DI::page()['aside']) && in_array($args->get(0), ["community", "calendar", "help", "delegation", "notifications",
                        "probe", "webfinger", "login", "invite", "credits"])) {
                DI::page()['htmlhead'] .= "<link rel='stylesheet' href='view/theme/vier/hide.css' />";
        }
@@ -144,7 +144,7 @@ function vier_community_info()
 
        // comunity_profiles
        if ($show_profiles) {
-               $contacts = Contact\Relation::getSuggestions(DI::userSession()->getLocalUserId(), 0, 9);
+               $contacts = Contact\Relation::getCachedSuggestions(DI::userSession()->getLocalUserId(), 0, 9);
 
                $tpl = Renderer::getMarkupTemplate('ch_directory_item.tpl');
                if (DBA::isResult($contacts)) {