2016-11-27 07:09:41 +11:00
|
|
|
import Status from '../status/status.vue'
|
|
|
|
// Temporary
|
2016-11-29 03:37:47 +11:00
|
|
|
import { prepareStatus } from '../../modules/statuses.js'
|
2016-11-27 07:09:41 +11:00
|
|
|
import { map } from 'lodash'
|
|
|
|
|
|
|
|
const Mentions = {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
mentions: []
|
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
username () {
|
|
|
|
return this.$route.params.username
|
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Status
|
|
|
|
},
|
|
|
|
created () {
|
|
|
|
this.$store.state.api.backendInteractor.fetchMentions({username: this.username})
|
|
|
|
.then((mentions) => {
|
2016-11-29 03:37:47 +11:00
|
|
|
this.mentions = map(mentions, prepareStatus)
|
2016-11-27 07:09:41 +11:00
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Mentions
|