Compare commits
1 commit
develop
...
hide-local
Author | SHA1 | Date | |
---|---|---|---|
0615c1b1cb |
1 changed files with 3 additions and 1 deletions
|
@ -10,12 +10,14 @@ const currentUserOrTimelineVisibleUnauthenticated = (state, timeline) => (
|
|||
|
||||
const federatedTimelineAvailable = (state) => state.instance.federatedTimelineAvailable;
|
||||
|
||||
const localTimelineAvailable = (state) => state.instance.localTimelineAvailable;
|
||||
|
||||
export const federatedTimelineVisible = (state) => (
|
||||
federatedTimelineAvailable(state) && currentUserOrTimelineVisibleUnauthenticated(state, 'federated')
|
||||
);
|
||||
|
||||
export const publicTimelineVisible = (state) => (
|
||||
currentUserOrTimelineVisibleUnauthenticated(state, 'local')
|
||||
localTimelineAvailable(state) && currentUserOrTimelineVisibleUnauthenticated(state, 'local')
|
||||
);
|
||||
|
||||
export const bubbleTimelineVisible = (state) => (
|
||||
|
|
Loading…
Reference in a new issue