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.
This commit is contained in:
ArthurHoaro 2019-02-09 14:13:08 +01:00
parent 905f8675a7
commit a8e7da0114
6 changed files with 42 additions and 7 deletions
application/api

View 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'];