Correctly show external picture attachments.

This commit is contained in:
Jan Böhmer 2020-05-22 22:24:36 +02:00
parent 2e527525bc
commit 8b43faeeac
2 changed files with 6 additions and 2 deletions

View file

@ -125,13 +125,17 @@ class AttachmentManager
return false;
}
if ($attachment->isExternal()) {
return true;
}
$absolute_path = $this->toAbsoluteFilePath($attachment);
if (null === $absolute_path) {
return false;
}
return file_exists($absolute_path) || $attachment->isExternal();
return file_exists($absolute_path);
}
/**