Merge pull request #10497 from MrPetovan/bug/10494-api-last-status-optional

Make last status parameter actually optional in Object\Api\Mastodon\Conversation
This commit is contained in:
Michael Vogel 2021-07-14 05:09:11 +02:00 committed by GitHub
commit b60396f306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,9 +42,9 @@ class Conversation extends BaseDataTransferObject
/**
* @var Status
*/
protected $last_status = true;
protected $last_status = null;
public function __construct(string $id, array $accounts, bool $unread, \Friendica\Object\Api\Mastodon\Status $last_status)
public function __construct(string $id, array $accounts, bool $unread, Status $last_status = null)
{
$this->id = (string)$id;
$this->accounts = $accounts;