kopia lustrzana https://github.com/friendica/friendica
Merge pull request #10497 from MrPetovan/bug/10494-api-last-status-optional
Make last status parameter actually optional in Object\Api\Mastodon\Conversationpull/10498/head
commit
b60396f306
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue