Removed unused CommunityTimeline references, public timeline route
• Removed: - unused CommunityTimeline references, public timeline route
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user