#468 - show pinned timeline and add pinned label to the status
This commit is contained in:
parent
e28b19645a
commit
2c89d49a3d
11 changed files with 69 additions and 18 deletions
|
@ -16,6 +16,12 @@ const update = ({store, statuses, timeline, showImmediately, userId}) => {
|
|||
}
|
||||
|
||||
const fetchAndUpdate = ({store, credentials, timeline = 'friends', older = false, showImmediately = false, userId = false, tag = false, until}) => {
|
||||
if (timeline === 'pinned') {
|
||||
return apiService.fetchPinnedStatuses({ id: userId, credentials })
|
||||
.then(statuses => {
|
||||
update({ store, statuses, timeline, showImmediately, userId })
|
||||
})
|
||||
}
|
||||
const args = { timeline, credentials }
|
||||
const rootState = store.rootState || store.state
|
||||
const timelineData = rootState.statuses.timelines[camelCase(timeline)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue