Fix fatal errors / added some API todo

This commit is contained in:
Michael 2021-05-17 19:20:31 +00:00
parent 87db6dc489
commit 916c51c630
3 changed files with 3 additions and 2 deletions

View file

@ -2707,7 +2707,7 @@ class Item
$shared_links = [];
}
$attachments = Post\Media::splitAttachments($item['uri-id'], $item['guid'], $shared_links);
$attachments = Post\Media::splitAttachments($item['uri-id'], $item['guid'] ?? '', $shared_links);
$s = self::addVisualAttachments($attachments, $item, $s, false);
$s = self::addLinkAttachment($attachments, $body, $s, false, $shared_links);
$s = self::addNonVisualAttachments($attachments, $item, $s, false);