fix(GenericUrlBookmarkPreviewer): Check URL not API key

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr
2025-07-10 08:35:07 +02:00
parent 904cc443bf
commit d4e70f915b

View File

@ -67,7 +67,7 @@ class GenericUrlBookmarkPreviewer implements IBookmarkPreviewer {
if (!isset($bookmark)) {
return null;
}
if ($this->apiKey === '' || $cacheOnly) {
if ($this->apiUrl === '' || $cacheOnly) {
return null;
}
$url = $bookmark->getUrl();