From: ArthurHoaro Date: Sat, 2 Mar 2019 09:54:06 +0000 (+0100) Subject: Merge pull request #1271 from ArthurHoaro/hotfix/thumb-note-retrieve X-Git-Tag: v0.11.0~28 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=cc69aad4a903dc603f47cfa87aeb1865b03c8950 Merge pull request #1271 from ArthurHoaro/hotfix/thumb-note-retrieve Do not try to retrieve thumbnails for internal link --- cc69aad4a903dc603f47cfa87aeb1865b03c8950 diff --cc index.php index 3700504b,7b54f98f..a43063b0 --- a/index.php +++ b/index.php @@@ -354,9 -356,13 +354,9 @@@ function showDailyRSS($conf, $loginMana // We pre-format some fields for proper output. foreach ($links as &$link) { - $link['formatedDescription'] = format_description( - $link['description'], - $conf->get('redirector.url'), - $conf->get('redirector.encode_url') - ); + $link['formatedDescription'] = format_description($link['description']); $link['timestamp'] = $link['created']->getTimestamp(); - if (startsWith($link['url'], '?')) { + if (is_note($link['url'])) { $link['url'] = index_url($_SERVER) . $link['url']; // make permalink URL absolute } }