Some more changes after review

This commit is contained in:
Michael 2023-10-05 03:17:55 +00:00
parent 73e9190ce7
commit 5d6e02bef3
1 changed files with 3 additions and 3 deletions

View File

@ -330,7 +330,7 @@ class Display extends BaseSettings
$timelines = []; $timelines = [];
foreach ($this->timeline->getNetworkFeeds('') as $channel) { foreach ($this->timeline->getNetworkFeeds('') as $channel) {
$timelines[$channel->code] = $channel; $timelines[] = $channel;
} }
if ($only_network) { if ($only_network) {
@ -338,11 +338,11 @@ class Display extends BaseSettings
} }
foreach ($this->timeline->getChannelsForUser($uid) as $channel) { foreach ($this->timeline->getChannelsForUser($uid) as $channel) {
$timelines[$channel->code] = $channel; $timelines[] = $channel;
} }
foreach ($this->timeline->getCommunities(true) as $community) { foreach ($this->timeline->getCommunities(true) as $community) {
$timelines[$community->code] = $community; $timelines[] = $community;
} }
return new Timelines($timelines); return new Timelines($timelines);