mirror of
https://github.com/friendica/friendica
synced 2025-05-11 23:04:12 +02:00
Add dislike counts to Mastodon API Statuses in FriendicaExtension
This commit is contained in:
parent
5f56918d3e
commit
3a8929be1f
4 changed files with 26 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue