Unneeded constructors removed
This commit is contained in:
@@ -22,18 +22,9 @@
|
||||
namespace Friendica\Content\Conversation\Factory;
|
||||
|
||||
use Friendica\Content\Conversation\Collection\Timelines;
|
||||
use Friendica\Content\Conversation\Repository\Channel as ChannelRepository;
|
||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||
use Friendica\Core\L10n;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
final class UserDefinedChannel extends Timeline
|
||||
{
|
||||
public function __construct(ChannelRepository $channel, L10n $l10n, LoggerInterface $logger, IManageConfigValues $config)
|
||||
{
|
||||
parent::__construct($channel, $l10n, $logger, $config);
|
||||
}
|
||||
|
||||
/**
|
||||
* List of available user defined channels
|
||||
*
|
||||
@@ -42,6 +33,7 @@ final class UserDefinedChannel extends Timeline
|
||||
*/
|
||||
public function getForUser(int $uid): Timelines
|
||||
{
|
||||
$tabs = [];
|
||||
foreach ($this->channelRepository->selectByUid($uid) as $channel) {
|
||||
$tabs[] = $channel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user