Removed unused CommunityTimeline references, public timeline route

• Removed:
- unused CommunityTimeline references, public timeline route
This commit is contained in:
mgabdev
2021-01-13 21:43:18 -05:00
parent 89a16b101f
commit 3c252e0f4c
5 changed files with 0 additions and 82 deletions

View File

@@ -86,9 +86,6 @@ export const dequeueTimeline = (timeline, expandFunc, optionalExpandArgs) => (di
if (timeline === 'home') {
dispatch(clearTimeline(timeline))
dispatch(expandHomeTimeline(optionalExpandArgs))
} else if (timeline === 'community') {
dispatch(clearTimeline(timeline))
dispatch(expandCommunityTimeline(optionalExpandArgs))
} else {
shouldDispatchDequeue = false
}
@@ -238,16 +235,6 @@ export const expandProTimeline = ({ maxId } = {}, done = noop) => {
}, done)
}
/**
*
*/
export const expandCommunityTimeline = ({ maxId, onlyMedia } = {}, done = noop) => {
return expandTimeline(`community${onlyMedia ? ':media' : ''}`, '/api/v1/timelines/public', {
max_id: maxId,
only_media: !!onlyMedia,
}, done)
}
/**
*
*/