]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/api/ApiUtils.php
Do not try to retrieve thumbnails for internal link
[github/shaarli/Shaarli.git] / application / api / ApiUtils.php
index 1824b5d08171f19c27ebb28d3831eacbfc040538..1e3ac02e110bdb137d7f52a2ce521d079ef13875 100644 (file)
@@ -59,7 +59,7 @@ class ApiUtils
     {
         $out['id'] = $link['id'];
         // Not an internal link
-        if ($link['url'][0] != '?') {
+        if (! is_note($link['url'])) {
             $out['url'] = $link['url'];
         } else {
             $out['url'] = $indexUrl . $link['url'];