mirror of
https://github.com/friendica/friendica
synced 2024-11-18 17:03:41 +00:00
Handle some fatal errors
This commit is contained in:
parent
35ce394948
commit
5d3248d57b
2 changed files with 10 additions and 4 deletions
|
@ -200,7 +200,10 @@ class Status extends BaseFactory
|
|||
}
|
||||
|
||||
$item['body'] = $this->contentItem->addSharedPost($item);
|
||||
|
||||
if (!is_null($item['raw-body'])) {
|
||||
$item['raw-body'] = $this->contentItem->addSharedPost($item, $item['raw-body']);
|
||||
}
|
||||
|
||||
if ($is_reshare) {
|
||||
$reshare = $this->createFromUriId($uriId, $uid, false)->toArray();
|
||||
|
|
|
@ -247,7 +247,10 @@ class Images
|
|||
if ($data) {
|
||||
$image = new Image($img_str);
|
||||
|
||||
if ($image->isValid()) {
|
||||
$data['blurhash'] = $image->getBlurHash();
|
||||
}
|
||||
|
||||
$data['size'] = $filesize;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue