mirror of
https://github.com/friendica/friendica
synced 2025-04-27 00:30:10 +00:00
Now there are user defined channels
This commit is contained in:
parent
bc3bdf3cb0
commit
ed24d06e0c
12 changed files with 132 additions and 49 deletions
|
@ -568,7 +568,13 @@ class Widget
|
|||
}
|
||||
}
|
||||
|
||||
foreach (DI::ChannelFactory()->getForUser($uid) as $channel) {
|
||||
foreach (DI::ChannelFactory()->getTimelines($uid) as $channel) {
|
||||
if (empty($enabled) || in_array($channel->code, $enabled)) {
|
||||
$channels[] = ['ref' => $channel->code, 'name' => $channel->label];
|
||||
}
|
||||
}
|
||||
|
||||
foreach (DI::UserDefinedChannelFactory()->getForUser($uid) as $channel) {
|
||||
if (empty($enabled) || in_array($channel->code, $enabled)) {
|
||||
$channels[] = ['ref' => $channel->code, 'name' => $channel->label];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue