X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;fp=index.php;h=4b86a3e2c17ece7338ad04646cedee6150bbbd47;hb=1c88a7b33e90ba3e33d88b148c086bc298126332;hp=925d47a5e476b55260e9cda84fbfa33e554b66cc;hpb=dccd62cbd6a3966e2b61d31c603fad4cc8ce4878;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 925d47a5..4b86a3e2 100644 --- a/index.php +++ b/index.php @@ -1635,9 +1635,9 @@ function buildLinkList($PAGE, $LINKSDB, $conf, $pluginManager, $loginManager) uasort($taglist, 'strcasecmp'); $link['taglist'] = $taglist; - // Thumbnails enabled, not a note, + // Logged in, thumbnails enabled, not a note, // and (never retrieved yet or no valid cache file) - if ($thumbnailsEnabled && $link['url'][0] != '?' + if ($loginManager->isLoggedIn() && $thumbnailsEnabled && $link['url'][0] != '?' && (! isset($link['thumbnail']) || ($link['thumbnail'] !== false && ! is_file($link['thumbnail']))) ) { $elem = $LINKSDB[$keys[$i]];