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:
parent
905f8675a7
commit
a8e7da0114
6 changed files with 42 additions and 7 deletions
application/api
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue