mirror of
https://github.com/friendica/friendica
synced 2025-04-25 11:10:11 +00:00
Set the "Link" header
This commit is contained in:
parent
d4f883a376
commit
78d4aff878
18 changed files with 98 additions and 18 deletions
|
@ -128,6 +128,7 @@ class Notifications extends BaseApi
|
|||
|
||||
$notify = DBA::select('notification', ['id'], $condition, $params);
|
||||
while ($notification = DBA::fetch($notify)) {
|
||||
self::setBoundaries($notification['id']);
|
||||
$entry = DI::mstdnNotification()->createFromNotificationId($notification['id']);
|
||||
if (!empty($entry)) {
|
||||
$notifications[] = $entry;
|
||||
|
@ -138,6 +139,7 @@ class Notifications extends BaseApi
|
|||
array_reverse($notifications);
|
||||
}
|
||||
|
||||
self::setLinkHeader();
|
||||
System::jsonExit($notifications);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue