Merge pull request from ArthurHoaro/hotfix/thumb-note-retrieve

Do not try to retrieve thumbnails for internal link
This commit is contained in:
ArthurHoaro 2019-03-02 10:54:06 +01:00 committed by GitHub
commit cc69aad4a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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'];