]> git.mxchange.org Git - friendica.git/commitdiff
Fix paging on List and Public timelines honoring order type
authorHank Grabowski <hankgrabowski@gmail.com>
Sat, 18 Mar 2023 02:13:43 +0000 (22:13 -0400)
committerHank Grabowski <hankgrabowski@gmail.com>
Sat, 18 Mar 2023 02:13:43 +0000 (22:13 -0400)
src/Module/Api/Mastodon/Timelines/ListTimeline.php
src/Module/Api/Mastodon/Timelines/PublicTimeline.php

index eeffeba885882af53ed3875a43535579a0a481c2..7f1d38c5c8fa3cbc3be3c4985334efab55299772 100644 (file)
@@ -104,7 +104,7 @@ class ListTimeline extends BaseApi
                        $statuses = array_reverse($statuses);
                }
 
-               self::setLinkHeader();
+               self::setLinkHeader($request['friendica_order'] != TimelineOrderByTypes::ID);
                System::jsonExit($statuses);
        }
 }
index 1f58a6a69f1f82565e9866f06c53a8060fed04bd..fa93d90c80786623422feeabc9db44dbda76ec38 100644 (file)
@@ -101,7 +101,7 @@ class PublicTimeline extends BaseApi
                        $statuses = array_reverse($statuses);
                }
 
-               self::setLinkHeader();
+               self::setLinkHeader($request['friendica_order'] != TimelineOrderByTypes::ID);
                System::jsonExit($statuses);
        }
 }