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:
commit
b60396f306
1 changed files with 2 additions and 2 deletions
|
@ -42,9 +42,9 @@ class Conversation extends BaseDataTransferObject
|
||||||
/**
|
/**
|
||||||
* @var Status
|
* @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->id = (string)$id;
|
||||||
$this->accounts = $accounts;
|
$this->accounts = $accounts;
|
||||||
|
|
Loading…
Reference in a new issue