added workaround for broken favorites

This commit is contained in:
Henry Jameson 2018-08-16 13:12:31 +03:00
parent ef515056b5
commit ef04a78634
6 changed files with 51 additions and 10 deletions

View file

@ -46,6 +46,10 @@ const api = {
store.commit('addFetcher', {timeline, fetcher})
}
},
fetchOldPost (store, { postId }) {
console.log(store)
store.state.backendInteractor.fetchOldPost({ store, postId })
},
stopFetching (store, timeline) {
const fetcher = store.state.fetchers[timeline]
window.clearInterval(fetcher)