Issue 12603: Support quotes in the API

This commit is contained in:
Michael 2023-01-23 19:00:20 +00:00
parent 5a01fb0521
commit ff28044cf6
2 changed files with 15 additions and 2 deletions

View file

@ -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);
}
/**