mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 08:14:25 +02:00
Issue 12603: Support quotes in the API
This commit is contained in:
parent
5a01fb0521
commit
ff28044cf6
2 changed files with 15 additions and 2 deletions
|
@ -234,7 +234,13 @@ class Status extends BaseFactory
|
|||
$reshare = [];
|
||||
}
|
||||
|
||||
return new \Friendica\Object\Api\Mastodon\Status($item, $account, $counts, $userAttributes, $sensitive, $application, $mentions, $tags, $card, $attachments, $reshare, $poll);
|
||||
if (!empty($item['quote-uri-id'])) {
|
||||
$quote = $this->createFromUriId($item['quote-uri-id'], $uid, false)->toArray();
|
||||
} else {
|
||||
$quote = [];
|
||||
}
|
||||
|
||||
return new \Friendica\Object\Api\Mastodon\Status($item, $account, $counts, $userAttributes, $sensitive, $application, $mentions, $tags, $card, $attachments, $reshare, $quote, $poll);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue