blob: 46a1c63ecbe92d9e90985ddcae487cf4b2dd8f0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import Timeline from '../timeline/timeline.vue'
const Mentions = {
computed: {
username () {
return this.$route.params.username
},
timeline () {
return this.$store.state.statuses.timelines.mentions
}
},
components: {
Timeline
},
created () {
this.$store.state.api.backendInteractor.fetchMentions({username: this.username})
.then((mentions) => {
this.$store.dispatch('addNewStatuses', {
statuses: mentions,
timeline: 'mentions',
showImmediately: true
})
})
}
}
export default Mentions
|