aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/api
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-02-09 14:13:08 +0100
committerArthurHoaro <arthur@hoa.ro>2019-02-24 12:25:50 +0100
commita8e7da01146455f13ef06b151a7dafedd3acf769 (patch)
treeb8278b8fb78fd40183e4273e880b85555358c6de /application/api
parent905f8675a728841b03b300d2c7dc909a1c4f7f03 (diff)
downloadShaarli-a8e7da01146455f13ef06b151a7dafedd3acf769.tar.gz
Shaarli-a8e7da01146455f13ef06b151a7dafedd3acf769.tar.zst
Shaarli-a8e7da01146455f13ef06b151a7dafedd3acf769.zip
Do not try to retrieve thumbnails for internal link
Also adds a helper function to determine if a link is a note and apply it across multiple files.
Diffstat (limited to 'application/api')
-rw-r--r--application/api/ApiUtils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/api/ApiUtils.php b/application/api/ApiUtils.php
index 1824b5d0..1e3ac02e 100644
--- a/application/api/ApiUtils.php
+++ b/application/api/ApiUtils.php
@@ -59,7 +59,7 @@ class ApiUtils
59 { 59 {
60 $out['id'] = $link['id']; 60 $out['id'] = $link['id'];
61 // Not an internal link 61 // Not an internal link
62 if ($link['url'][0] != '?') { 62 if (! is_note($link['url'])) {
63 $out['url'] = $link['url']; 63 $out['url'] = $link['url'];
64 } else { 64 } else {
65 $out['url'] = $indexUrl . $link['url']; 65 $out['url'] = $indexUrl . $link['url'];