mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2025-02-13 16:13:22 +01:00
27 lines
592 B
JavaScript
27 lines
592 B
JavaScript
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
|