From adfc15207afde957f03493f74b5674119aa762ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CRaroun=E2=80=9D?= Date: Thu, 12 Feb 2026 09:28:13 +0100 Subject: [PATCH] Fix pagination by using array_key_first/last in Channel and Network modules --- src/Module/Conversation/Channel.php | 4 ++-- src/Module/Conversation/Network.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Module/Conversation/Channel.php b/src/Module/Conversation/Channel.php index 108846034c..b8d8ba4ff0 100644 --- a/src/Module/Conversation/Channel.php +++ b/src/Module/Conversation/Channel.php @@ -131,8 +131,8 @@ class Channel extends Timeline $pager = new BoundariesPager( $this->l10n, $this->args->getQueryString(), - $items[0][$order], - $items[count($items) - 1][$order], + $items[array_key_first($items)][$order], + $items[array_key_last($items)][$order], $this->itemsPerPage ); diff --git a/src/Module/Conversation/Network.php b/src/Module/Conversation/Network.php index 5bcde53783..cf55f3546d 100644 --- a/src/Module/Conversation/Network.php +++ b/src/Module/Conversation/Network.php @@ -307,8 +307,8 @@ class Network extends Timeline $pager = new BoundariesPager( $this->l10n, $this->args->getQueryString(), - $items[0][$this->order] ?? null, - $items[count($items) - 1][$this->order] ?? null, + $items[array_key_first($items)][$this->order] ?? null, + $items[array_key_last($items)][$this->order] ?? null, $this->itemsPerPage );