2016-11-26 20:09:41 +00:00
|
|
|
import Status from '../status/status.vue'
|
|
|
|
// Temporary
|
2016-11-28 16:37:47 +00:00
|
|
|
import { prepareStatus } from '../../modules/statuses.js'
|
2016-11-26 20:09:41 +00: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-28 16:37:47 +00:00
|
|
|
this.mentions = map(mentions, prepareStatus)
|
2016-11-26 20:09:41 +00:00
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Mentions
|