API: Access channels and groups via lists

This commit is contained in:
Michael 2024-04-19 21:09:23 +00:00
parent 1cabf53bf5
commit 984a972e72
12 changed files with 160 additions and 41 deletions

View file

@ -34,6 +34,8 @@ class ListEntity extends BaseDataTransferObject
protected $id;
/** @var string */
protected $title;
/** @var string */
protected $replies_policy;
/**
* Creates an list record
@ -42,9 +44,9 @@ class ListEntity extends BaseDataTransferObject
* @param string $title
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function __construct(int $id, string $title, string $policy)
public function __construct(string $id, string $title, string $policy)
{
$this->id = (string)$id;
$this->id = $id;
$this->title = $title;
$this->replies_policy = $policy;
}

View file

@ -160,7 +160,7 @@ class Status extends BaseDataTransferObject
/**
* Returns the current created_at string or null if not set
* @return \DateTime|null
* @return ?string
*/
public function createdAt(): ?string
{