Add dislike counts to Mastodon API Statuses in FriendicaExtension

This commit is contained in:
Hank Grabowski 2023-02-20 15:31:15 -05:00
parent 5f56918d3e
commit 3a8929be1f
4 changed files with 26 additions and 9 deletions

View file

@ -35,14 +35,18 @@ class FriendicaExtension extends BaseDataTransferObject
/** @var string */
protected $title;
/** @var int */
protected $dislikes_count;
/**
* Creates a status count object
*
* @param string $title
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function __construct(string $title)
public function __construct(string $title, int $dislikes_count)
{
$this->title = $title;
$this->title = $title;
$this->dislikes_count = $dislikes_count;
}
}