mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 17:14:26 +02:00
Show network elements in the channel widget
This commit is contained in:
parent
00eb6b01ff
commit
5056c95d60
3 changed files with 10 additions and 1 deletions
|
@ -134,6 +134,11 @@ final class Timeline extends \Friendica\BaseFactory implements ICanCreateFromTab
|
|||
return new Timelines($tabs);
|
||||
}
|
||||
|
||||
public function isNetwork(string $selectedTab): bool
|
||||
{
|
||||
return in_array($selectedTab, [TimelineEntity::COMMENTED, TimelineEntity::RECEIVED, TimelineEntity::CREATED, TimelineEntity::MENTION, TimelineEntity::STAR]);
|
||||
}
|
||||
|
||||
public function isCommunity(string $selectedTab): bool
|
||||
{
|
||||
return in_array($selectedTab, [TimelineEntity::LOCAL, TimelineEntity::GLOBAL]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue