mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:50:11 +00:00
API: several fixes to the Twitter/Statusnet API
This commit is contained in:
parent
093dd70e79
commit
bf5c8a2c43
22 changed files with 94 additions and 70 deletions
|
@ -100,9 +100,9 @@ class Status extends BaseDataTransferObject
|
|||
*/
|
||||
public function __construct(string $text, string $statusnetHtml, string $friendicaHtml, array $item, User $author, User $owner, array $retweeted, array $quoted, array $geo, array $friendica_activities, array $entities, array $attachments, int $friendica_comments, bool $liked)
|
||||
{
|
||||
$this->id = (int)$item['id'];
|
||||
$this->id_str = (string)$item['id'];
|
||||
$this->statusnet_conversation_id = (int)$item['parent'];
|
||||
$this->id = (int)$item['uri-id'];
|
||||
$this->id_str = (string)$item['uri-id'];
|
||||
$this->statusnet_conversation_id = (int)$item['parent-uri-id'];
|
||||
|
||||
$this->created_at = DateTimeFormat::utc($item['created'], DateTimeFormat::API);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue