aboutsummaryrefslogtreecommitdiff
path: root/src/components/mentions/mentions.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/mentions/mentions.js')
-rw-r--r--src/components/mentions/mentions.js21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/components/mentions/mentions.js b/src/components/mentions/mentions.js
index e84d1912..46a1c63e 100644
--- a/src/components/mentions/mentions.js
+++ b/src/components/mentions/mentions.js
@@ -1,26 +1,25 @@
-import Status from '../status/status.vue'
-// Temporary
-import { prepareStatus } from '../../modules/statuses.js'
-import { map } from 'lodash'
+import Timeline from '../timeline/timeline.vue'
const Mentions = {
- data () {
- return {
- mentions: []
- }
- },
computed: {
username () {
return this.$route.params.username
+ },
+ timeline () {
+ return this.$store.state.statuses.timelines.mentions
}
},
components: {
- Status
+ Timeline
},
created () {
this.$store.state.api.backendInteractor.fetchMentions({username: this.username})
.then((mentions) => {
- this.mentions = map(mentions, prepareStatus)
+ this.$store.dispatch('addNewStatuses', {
+ statuses: mentions,
+ timeline: 'mentions',
+ showImmediately: true
+ })
})
}
}