mirror of
https://github.com/friendica/friendica
synced 2025-04-27 20:30:13 +00:00
Clean channel confusion
This commit is contained in:
parent
134cbacf31
commit
3f6480c127
7 changed files with 29 additions and 30 deletions
|
@ -42,7 +42,7 @@ final class UserDefinedChannel extends Timeline
|
|||
*/
|
||||
public function getForUser(int $uid): Timelines
|
||||
{
|
||||
foreach ($this->channel->selectByUid($uid) as $channel) {
|
||||
foreach ($this->channelRepository->selectByUid($uid) as $channel) {
|
||||
$tabs[] = $channel;
|
||||
}
|
||||
|
||||
|
@ -51,6 +51,6 @@ final class UserDefinedChannel extends Timeline
|
|||
|
||||
public function isTimeline(string $selectedTab, int $uid): bool
|
||||
{
|
||||
return is_numeric($selectedTab) && $uid && $this->channel->existsById($selectedTab, $uid);
|
||||
return is_numeric($selectedTab) && $uid && $this->channelRepository->existsById($selectedTab, $uid);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue