From afb6913a2f3ebf8c5047d73ce3b542aeb81dbf66 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 30 Sep 2023 18:51:35 +0000 Subject: [PATCH] Timelines are now an object instead of an array --- src/Module/Settings/Display.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Module/Settings/Display.php b/src/Module/Settings/Display.php index bbae7d5990..4c8688ba20 100644 --- a/src/Module/Settings/Display.php +++ b/src/Module/Settings/Display.php @@ -249,8 +249,8 @@ class Display extends BaseSettings $timelines = []; foreach ($this->getAvailableTimelines($uid) as $code => $timeline) { $timelines[] = [ - 'label' => $timeline['label'], - 'description' => $timeline['description'], + 'label' => $timeline->label, + 'description' => $timeline->description, 'enable' => ["enable[$code]", '', in_array($code, $enabled_timelines)], 'bookmark' => ["bookmark[$code]", '', in_array($code, $bookmarked_timelines)], ]; @@ -330,7 +330,7 @@ class Display extends BaseSettings $timelines = []; foreach ($this->timeline->getNetworkFeeds('') as $channel) { - $timelines[$channel->code] = ['label' => $channel->label, 'description' => $channel->description]; + $timelines[$channel->code] = $channel; } if ($only_network) { @@ -338,11 +338,11 @@ class Display extends BaseSettings } foreach ($this->timeline->getChannelsForUser($uid) as $channel) { - $timelines[$channel->code] = ['label' => $channel->label, 'description' => $channel->description]; + $timelines[$channel->code] = $channel; } foreach ($this->timeline->getCommunities(true) as $community) { - $timelines[$community->code] = ['label' => $community->label, 'description' => $community->description]; + $timelines[$community->code] = $community; } return $timelines; -- 2.39.5