From 7f4f44a3a870226394d329b5abe52b3c9ee6e2cd Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Fri, 17 Mar 2023 22:13:43 -0400 Subject: [PATCH] Fix paging on List and Public timelines honoring order type --- src/Module/Api/Mastodon/Timelines/ListTimeline.php | 2 +- src/Module/Api/Mastodon/Timelines/PublicTimeline.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Api/Mastodon/Timelines/ListTimeline.php b/src/Module/Api/Mastodon/Timelines/ListTimeline.php index eeffeba885..7f1d38c5c8 100644 --- a/src/Module/Api/Mastodon/Timelines/ListTimeline.php +++ b/src/Module/Api/Mastodon/Timelines/ListTimeline.php @@ -104,7 +104,7 @@ class ListTimeline extends BaseApi $statuses = array_reverse($statuses); } - self::setLinkHeader(); + self::setLinkHeader($request['friendica_order'] != TimelineOrderByTypes::ID); System::jsonExit($statuses); } } diff --git a/src/Module/Api/Mastodon/Timelines/PublicTimeline.php b/src/Module/Api/Mastodon/Timelines/PublicTimeline.php index 1f58a6a69f..fa93d90c80 100644 --- a/src/Module/Api/Mastodon/Timelines/PublicTimeline.php +++ b/src/Module/Api/Mastodon/Timelines/PublicTimeline.php @@ -101,7 +101,7 @@ class PublicTimeline extends BaseApi $statuses = array_reverse($statuses); } - self::setLinkHeader(); + self::setLinkHeader($request['friendica_order'] != TimelineOrderByTypes::ID); System::jsonExit($statuses); } } -- 2.39.5