Set the "Link" header

This commit is contained in:
Michael 2021-06-16 15:02:33 +00:00
parent d4f883a376
commit 78d4aff878
18 changed files with 98 additions and 18 deletions

View file

@ -85,6 +85,7 @@ class Conversations extends BaseApi
$conversations = [];
while ($conv = DBA::fetch($convs)) {
self::setBoundaries($conv['id']);
$conversations[] = DI::mstdnConversation()->CreateFromConvId($conv['id']);
}
@ -94,6 +95,7 @@ class Conversations extends BaseApi
array_reverse($conversations);
}
self::setLinkHeader();
System::jsonExit($conversations);
}
}