From 2c89d49a3d22ed2813a6a57fb6049341fa8624ba Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 4 Apr 2019 15:10:34 -0400 Subject: #468 - show pinned timeline and add pinned label to the status --- src/services/timeline_fetcher/timeline_fetcher.service.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/services/timeline_fetcher/timeline_fetcher.service.js') diff --git a/src/services/timeline_fetcher/timeline_fetcher.service.js b/src/services/timeline_fetcher/timeline_fetcher.service.js index 8e954cdf..e8d9a2ed 100644 --- a/src/services/timeline_fetcher/timeline_fetcher.service.js +++ b/src/services/timeline_fetcher/timeline_fetcher.service.js @@ -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)] -- cgit v1.2.3-70-g09d2