Fix picwall img url for self note

This commit is contained in:
Knah Tsaeb 2018-10-05 14:06:27 +02:00
parent 3801d999a0
commit ee610d4505

View file

@ -620,6 +620,9 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
/*if (isset($link['thumbnail']) && $link['thumbnail'] !== false) { /*if (isset($link['thumbnail']) && $link['thumbnail'] !== false) {
$linksToDisplay[] = $link; // Add to array. $linksToDisplay[] = $link; // Add to array.
}*/ }*/
if ($link['url'][0] === '?' && strlen($link['url']) === 7) {
$link['url'] = index_url($_SERVER) . $link['url'];
}
$thumUrl = $conf->get('plugins.ExternalThumbshot_URL'); $thumUrl = $conf->get('plugins.ExternalThumbshot_URL');
if(!empty($conf->get('plugins.ExternalThumbshot_KEY'))){ if(!empty($conf->get('plugins.ExternalThumbshot_KEY'))){