diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -356,7 +356,7 @@ function showDailyRSS($conf, $loginManager) | |||
356 | foreach ($links as &$link) { | 356 | foreach ($links as &$link) { |
357 | $link['formatedDescription'] = format_description($link['description']); | 357 | $link['formatedDescription'] = format_description($link['description']); |
358 | $link['timestamp'] = $link['created']->getTimestamp(); | 358 | $link['timestamp'] = $link['created']->getTimestamp(); |
359 | if (startsWith($link['url'], '?')) { | 359 | if (is_note($link['url'])) { |
360 | $link['url'] = index_url($_SERVER) . $link['url']; // make permalink URL absolute | 360 | $link['url'] = index_url($_SERVER) . $link['url']; // make permalink URL absolute |
361 | } | 361 | } |
362 | } | 362 | } |
@@ -1166,7 +1166,9 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager, | |||
1166 | $link['title'] = $link['url']; | 1166 | $link['title'] = $link['url']; |
1167 | } | 1167 | } |
1168 | 1168 | ||
1169 | if ($conf->get('thumbnails.mode', Thumbnailer::MODE_NONE) !== Thumbnailer::MODE_NONE) { | 1169 | if ($conf->get('thumbnails.mode', Thumbnailer::MODE_NONE) !== Thumbnailer::MODE_NONE |
1170 | && ! is_note($link['url']) | ||
1171 | ) { | ||
1170 | $thumbnailer = new Thumbnailer($conf); | 1172 | $thumbnailer = new Thumbnailer($conf); |
1171 | $link['thumbnail'] = $thumbnailer->get($url); | 1173 | $link['thumbnail'] = $thumbnailer->get($url); |
1172 | } | 1174 | } |
@@ -1550,7 +1552,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager, | |||
1550 | $ids = []; | 1552 | $ids = []; |
1551 | foreach ($LINKSDB as $link) { | 1553 | foreach ($LINKSDB as $link) { |
1552 | // A note or not HTTP(S) | 1554 | // A note or not HTTP(S) |
1553 | if ($link['url'][0] === '?' || ! startsWith(strtolower($link['url']), 'http')) { | 1555 | if (is_note($link['url']) || ! startsWith(strtolower($link['url']), 'http')) { |
1554 | continue; | 1556 | continue; |
1555 | } | 1557 | } |
1556 | $ids[] = $link['id']; | 1558 | $ids[] = $link['id']; |