From ee610d450556c2e8c1e9c36a50bcf43158745f30 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Fri, 5 Oct 2018 14:06:27 +0200 Subject: [PATCH] Fix picwall img url for self note --- index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.php b/index.php index 5ac86a04..d0fe984c 100644 --- a/index.php +++ b/index.php @@ -620,6 +620,9 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager, /*if (isset($link['thumbnail']) && $link['thumbnail'] !== false) { $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'); if(!empty($conf->get('plugins.ExternalThumbshot_KEY'))){