The next mail endpoint is done

This commit is contained in:
Michael 2021-05-20 04:39:45 +00:00
parent 8a3db0226b
commit db8b0b9666
6 changed files with 120 additions and 44 deletions

View file

@ -84,10 +84,12 @@ class Conversation extends BaseApi
$conversations = [];
foreach ($convs as $conv) {
while ($conv = DBA::fetch($convs)) {
$conversations[] = DI::mstdnConversation()->CreateFromConvId($conv['id']);
}
DBA::close($convs);
if (!empty($request['min_id'])) {
array_reverse($conversations);
}