2016-12-03 11:43:21 +00:00
|
|
|
import Timeline from '../timeline/timeline.vue'
|
2016-11-26 20:09:41 +00:00
|
|
|
|
|
|
|
const Mentions = {
|
|
|
|
computed: {
|
|
|
|
username () {
|
|
|
|
return this.$route.params.username
|
2016-12-03 11:43:21 +00:00
|
|
|
},
|
|
|
|
timeline () {
|
|
|
|
return this.$store.state.statuses.timelines.mentions
|
2016-11-26 20:09:41 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
2016-12-03 11:43:21 +00:00
|
|
|
Timeline
|
2016-11-26 20:09:41 +00:00
|
|
|
},
|
|
|
|
created () {
|
|
|
|
this.$store.state.api.backendInteractor.fetchMentions({username: this.username})
|
|
|
|
.then((mentions) => {
|
2016-12-03 11:43:21 +00:00
|
|
|
this.$store.dispatch('addNewStatuses', {
|
|
|
|
statuses: mentions,
|
|
|
|
timeline: 'mentions',
|
|
|
|
showImmediately: true
|
|
|
|
})
|
2016-11-26 20:09:41 +00:00
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Mentions
|