]> git.mxchange.org Git - friendica.git/commitdiff
Account for null title when instantiating FriendicaExtension in Factory\Api\Mastodon...
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 3 Apr 2023 03:22:19 +0000 (23:22 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 3 Apr 2023 03:22:19 +0000 (23:22 -0400)
src/Factory/Api/Mastodon/Status.php

index 41f02090e051c25b22ad6f3ceedf09032cd7acfb..c331590b55047a28cd1ff9b9b730e9dbff6c7df4 100644 (file)
@@ -307,7 +307,7 @@ class Status extends BaseFactory
 
                $delivery_data   = $uid != $item['uid'] ? null : new FriendicaDeliveryData($item['delivery_queue_count'], $item['delivery_queue_done'], $item['delivery_queue_failed']);
                $visibility_data = $uid != $item['uid'] ? null : new FriendicaVisibility($this->aclFormatter->expand($item['allow_cid']), $this->aclFormatter->expand($item['deny_cid']), $this->aclFormatter->expand($item['allow_gid']), $this->aclFormatter->expand($item['deny_gid']));
-               $friendica       = new FriendicaExtension($item['title'], $item['changed'], $item['commented'], $item['received'], $counts->dislikes, $origin_dislike, $delivery_data, $visibility_data);
+               $friendica       = new FriendicaExtension($item['title'] ?? '', $item['changed'], $item['commented'], $item['received'], $counts->dislikes, $origin_dislike, $delivery_data, $visibility_data);
 
                return new \Friendica\Object\Api\Mastodon\Status($item, $account, $counts, $userAttributes, $sensitive, $application, $mentions, $tags, $card, $attachments, $in_reply, $reshare, $friendica, $quote, $poll);
        }