mirror of
https://github.com/friendica/friendica
synced 2025-04-24 02:30:13 +00:00
API: Added trending links
This commit is contained in:
parent
e391328cbf
commit
de76e860ad
8 changed files with 74 additions and 8 deletions
|
@ -59,7 +59,7 @@ class Card extends BaseDataTransferObject
|
|||
* @param array $attachment Attachment record
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public function __construct(array $attachment)
|
||||
public function __construct(array $attachment, array $history = [])
|
||||
{
|
||||
$this->url = $attachment['url'] ?? '';
|
||||
$this->title = $attachment['title'] ?? '';
|
||||
|
@ -72,6 +72,7 @@ class Card extends BaseDataTransferObject
|
|||
$this->width = $attachment['width'] ?? 0;
|
||||
$this->height = $attachment['height'] ?? 0;
|
||||
$this->image = $attachment['image'] ?? '';
|
||||
$this->history = $history;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue