From: Hank Grabowski Date: Sat, 18 Mar 2023 02:13:43 +0000 (-0400) Subject: Fix paging on List and Public timelines honoring order type X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7f4f44a3a870226394d329b5abe52b3c9ee6e2cd;p=friendica.git Fix paging on List and Public timelines honoring order type --- 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); } }